Visual Studio referenced assembly CopyLocal doesn't work
-
14-11-2019 - |
質問
I have a Console
application and a Class Library
in a solution. Whenever I reference class library from console application it finds it but after building the solution it cannot find the type.
Although CopyLocal
is set to true
but the referenced assembly is not copied !
解決
The reason was my console application target framework was Client Profile
. Changing it to .NET 4.0 resolved the problem.
他のヒント
Is the referenced assembly in the Global Assembly Cache? Assemblies that are installed in the GAC are not copied to the output folder, even when CopyLocal is true.
所属していません StackOverflow