質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top