-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from fsprojects/satellite
Don't reference satellite assemblies - fixes #439
- Loading branch information
Showing
3 changed files
with
62 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
module Paket.InstallModel.Xml.SystemSpatialSpecs | ||
|
||
open Paket | ||
open NUnit.Framework | ||
open FsUnit | ||
open Paket.TestHelpers | ||
open Paket.Domain | ||
|
||
let expected = """ | ||
<Choose xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<When Condition="$(TargetFrameworkIdentifier) == 'Silverlight' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v5.0')"> | ||
<ItemGroup> | ||
<Reference Include="System.Spatial"> | ||
<HintPath>..\..\..\System.Spatial\lib\sl4\System.Spatial.dll</HintPath> | ||
<Private>True</Private> | ||
<Paket>True</Paket> | ||
</Reference> | ||
</ItemGroup> | ||
</When> | ||
<When Condition="($(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3')) Or ($(TargetFrameworkIdentifier) == 'MonoAndroid') Or ($(TargetFrameworkIdentifier) == 'MonoTouch')"> | ||
<ItemGroup> | ||
<Reference Include="System.Spatial"> | ||
<HintPath>..\..\..\System.Spatial\lib\net40\System.Spatial.dll</HintPath> | ||
<Private>True</Private> | ||
<Paket>True</Paket> | ||
</Reference> | ||
</ItemGroup> | ||
</When> | ||
</Choose>""" | ||
|
||
[<Test>] | ||
let ``should generate Xml for System.Spatial``() = | ||
let model = | ||
InstallModel.CreateFromLibs(PackageName "System.Spatial", SemVer.Parse "5.6.3", None, | ||
[ @"..\System.Spatial\lib\net40\System.Spatial.dll" | ||
@"..\System.Spatial\lib\net40\de\System.Spatial.resources.dll" | ||
@"..\System.Spatial\lib\net40\es\System.Spatial.resources.dll" | ||
@"..\System.Spatial\lib\net40\zh-Hans\System.Spatial.resources.dll" | ||
|
||
@"..\System.Spatial\lib\sl4\System.Spatial.dll" | ||
@"..\System.Spatial\lib\sl4\de\System.Spatial.resources.dll" | ||
@"..\System.Spatial\lib\sl4\es\System.Spatial.resources.dll" | ||
@"..\System.Spatial\lib\sl4\zh-Hans\System.Spatial.resources.dll" | ||
], | ||
Nuspec.All) | ||
|
||
let chooseNode = ProjectFile.Load("./ProjectFile/TestData/Empty.fsprojtest").Value.GenerateXml(model) | ||
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