-
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 #618 from betgenius/blacklist-bcl-build
blacklisted Microsoft.Bcl.Build.targets
- Loading branch information
Showing
5 changed files
with
49 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Paket | ||
|
||
type Blacklist = | ||
{ TargetsFiles : string list | ||
LibraryFiles : string list } | ||
|
||
// default set of blacklisted references we don't want to install | ||
static member TheBlacklist = | ||
{ TargetsFiles = | ||
[ | ||
"Microsoft.Bcl.Build.targets" // would install a targets file causing the build to fail in VS if no packages.config files | ||
] | ||
LibraryFiles = [] } | ||
|
||
|
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,20 @@ | ||
module Paket.InstallModel.Xml.MicrosoftBclBuildSpecs | ||
|
||
open Paket | ||
open NUnit.Framework | ||
open FsUnit | ||
open Paket.Domain | ||
|
||
[<Test>] | ||
let ``should not install targets node for Microsoft.Bcl.Build``() = | ||
let model = | ||
InstallModel.CreateFromLibs(PackageName "Microsoft.Bcl.Build", SemVer.Parse "1.0.21", [], | ||
[ ], | ||
[ @"..\Microsoft.Bcl.Build\build\Microsoft.Bcl.Build.Tasks.dll"; @"..\Microsoft.Bcl.Build\build\Microsoft.Bcl.Build.targets" ], | ||
Nuspec.All) | ||
|
||
model.GetTargetsFiles(SinglePlatform (DotNetFramework FrameworkVersion.V4)) |> shouldNotContain @"..\Microsoft.Bcl.Build\build\Microsoft.Bcl.Build.targets" | ||
|
||
let propertyNodes,_,_ = ProjectFile.Load("./ProjectFile/TestData/Empty.fsprojtest").Value.GenerateXml(model,true,true) | ||
|
||
propertyNodes |> Seq.length |> shouldEqual 0 |
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