SqlServer.Dmf.dll required in the global assembly cache when installing wpf application

I have a wpf application that creates a database for a file. It just uses (LocalDB) /v11.0 in the connection string is not .SQLExpress. If I go to the project properties and go to the publishing tab and click on "Application Files", I will tell him "Exclude SQlServer.Dmf.dll", and yet, when I publish it, you still request this DLL. Why is this? I do not use this dll anywhere in my application, and I do not think it should be necessary to add it to my links. If I install Microsoft SQL Server 2012, then on the machine that I am trying to install, it will work. But for what I am doing, I do not need to install SQL Server 2012. Im only ever using the local db.mdf (along with the log) in the file. Did I miss something?

+1
source share
1 answer

The files listed in Project Properties > Publish > Application Filesare automatically compiled by Visual Studio. Your application must require these DLLs. If they are not already registered on the computer, then installing them on excludedwill lead to the error described by you.

You must either install the builds in Included, or if this adds an unacceptable amount of overhead to your distribution, you can go to Project Properties > Publish > Prerequisitesand addSQL Server 2012 Express LocalDB

+1
source

All Articles