You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Packet Pack for Silverlight projects outputs to lib\net40 instead of lib\sl40 #751
We use Project.GetTargetFramework at the moment (see below). Is this a bug in GetTargetFramework, or does packaging need to provide it's own logic? I'm not clear if sl40 or net40 is the "correct" general response here.
That's for the quick response! If you package using the official NuGet client it will place the files in "sl40". If you put the output of packet pack for a Silverlight project on a NuGet feed and try and install it to another Silverlight project it will fail with the following error messages because there is no "sl40" folder:
Install-Package : Could not install package 'TestProject 1.0.070.9617'. You are trying to install this package into a project that targets 'Silverlight,Version=v4.0',
but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I sneakly renamed an actual production project to TestProject which I obviously can't publish. I have created a full example from scratch. Checkout the examples in the output folder.
Activity
forki commentedon Apr 7, 2015
@mavnn how do we want to deal with this?
On Apr 7, 2015 14:30, "Chris Haines" [email protected] wrote:
mavnn commentedon Apr 7, 2015
We use
Project.GetTargetFrameworkat the moment (see below). Is this a bug in GetTargetFramework, or does packaging need to provide it's own logic? I'm not clear if sl40 or net40 is the "correct" general response here.https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/PackageMetaData.fs#L138
cjbhaines commentedon Apr 7, 2015
That's for the quick response! If you package using the official NuGet client it will place the files in "sl40". If you put the output of packet pack for a Silverlight project on a NuGet feed and try and install it to another Silverlight project it will fail with the following error messages because there is no "sl40" folder:
Install-Package : Could not install package 'TestProject 1.0.070.9617'. You are trying to install this package into a project that targets 'Silverlight,Version=v4.0',
but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
forki commentedon Apr 7, 2015
@cjbhaines could you please post you fsproj /csproj file? I want to add an unittest.
cjbhaines commentedon Apr 7, 2015
I sneakly renamed an actual production project to TestProject which I obviously can't publish. I have created a full example from scratch. Checkout the examples in the output folder.
https://onedrive.live.com/redir?resid=bb18e69b948ef2cb!9897&authkey=!AKTa3mOwLNgO-ZU&ithint=file%2czip
forki commentedon Apr 7, 2015
could you please try 0.38.5?
cjbhaines commentedon Apr 7, 2015
That's done the trick. Thanks a lot guys!
Failing test for GetTargetFramework().