开发者

Creating NuGet Packages - Why doesn't this folder structure work for .NET 4.0?

开发者 https://www.devze.com 2023-02-07 04:01 出处:网络
Here is the issue I\'m having - I cannot get my project\'s NuGet package to work for .NET 4.0. Here is what my folder structure looks like:

Here is the issue I'm having - I cannot get my project's NuGet package to work for .NET 4.0.

Here is what my folder structure looks like:

 lib\   
      \.NET 4.0
          binary.dll   
      \Silverlight 4.0
          binary.silverlight.dll

Whenever I try to add this package to a Silverlight 4 project, it work开发者_如何学JAVAs just fine. When I try to add it to an ASP.NET MVC3 app I get the following error: "unable to find assembly references that are compatible with the target framework '.NETFramework, version=v4.0'"

What am I doing wrong?


Change the folder name to Net40 and SL4 (or Silverlight4 no spaces). You should file a bug though, those names should work. I think the "." in .NET might be throwing it off.

0

精彩评论

暂无评论...
验证码 换一张
取 消