-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NuGet packages with FrameworkAssembly nodes did not work - fixes #1306
- Loading branch information
Showing
6 changed files
with
84 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module Paket.InstallModel.Xml.EmptyLibsSpecs | ||
|
||
open Paket | ||
open NUnit.Framework | ||
open FsUnit | ||
open Paket.TestHelpers | ||
open Paket.Domain | ||
open Paket.Requirements | ||
|
||
let expected = """ | ||
<ItemGroup xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Reference Include="System.Xaml"> | ||
<Paket>True</Paket> | ||
</Reference> | ||
</ItemGroup>""" | ||
|
||
[<Test>] | ||
let ``should generate Xml for framework references and empty libs``() = | ||
let model = | ||
InstallModel.CreateFromLibs(PackageName "TempPkg", SemVer.Parse "0.1", [], | ||
[ ], | ||
[], | ||
[], | ||
Nuspec.Load("Nuspec/EmptyLibs.nuspec")) | ||
|
||
let _,targetsNodes,chooseNode,_,_ = ProjectFile.TryLoad("./ProjectFile/TestData/Empty.fsprojtest").Value.GenerateXml(model,true,true,None) | ||
chooseNode.OuterXml | ||
|> normalizeXml | ||
|> shouldEqual (normalizeXml expected) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>TempPkg</id> | ||
<version>0.1</version> | ||
<title>TempPkg</title> | ||
<authors>MtW</authors> | ||
<owners>MtW</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>TempPkg</description> | ||
<language /> | ||
<dependencies> | ||
</dependencies> | ||
<frameworkAssemblies> | ||
<frameworkAssembly assemblyName="System.Xaml" /> | ||
</frameworkAssemblies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters