-
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.
dotnet sdk: disable implicitly adding system.valuetuple and fsharp.core
warn when a sdk f# project does not contain a reference to fsharp.core
- Loading branch information
Showing
30 changed files
with
1,388 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace before | ||
|
||
module Say = | ||
let hello name = | ||
printfn "Hello %s" name |
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,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Library.fs" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,8 @@ | ||
using System; | ||
|
||
namespace before | ||
{ | ||
public class Class1 | ||
{ | ||
} | ||
} |
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,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
180 changes: 180 additions & 0 deletions
180
integrationtests/scenarios/i002528-3/before/.paket/Paket.Restore.targets
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,180 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- Prevent dotnet template engine to parse this file --> | ||
<!--/-:cnd:noEmit--> | ||
<PropertyGroup> | ||
<!-- Mark that this target file has been loaded. --> | ||
<IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded> | ||
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath> | ||
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath> | ||
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath> | ||
<!-- Paket command --> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath> | ||
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand> | ||
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand> | ||
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' AND Exists('$(PaketRootPath)paket.bootstrapper.exe')">$(PaketRootPath)paket.bootstrapper.exe</PaketBootStrapperExePath> | ||
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath> | ||
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand> | ||
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)"</PaketBootStrapperCommand> | ||
</PropertyGroup> | ||
|
||
<Target Name="PaketRestore" BeforeTargets="_GenerateDotnetCliToolReferenceSpecs;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" > | ||
|
||
<Exec Command='$(PaketBootStrapperCommand) ' Condition="Exists('$(PaketBootStrapperExePath)') AND !(Exists('$(PaketExePath)'))" ContinueOnError="false" /> | ||
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework $(TargetFramework)' Condition="$(TargetFramework) != ''" ContinueOnError="false" /> | ||
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework "$(TargetFrameworks)"' Condition="$(TargetFramework) == ''" ContinueOnError="false" /> | ||
|
||
<PropertyGroup> | ||
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath> | ||
</PropertyGroup> | ||
|
||
<ReadLinesFromFile File="$(PaketReferencesFilePath)" > | ||
<Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup Condition=" '@(PaketReferencesFileLines)' != '' " > | ||
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" > | ||
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName> | ||
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion> | ||
</PaketReferencesFileLinesInfo> | ||
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)"> | ||
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<PaketCliToolFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools</PaketCliToolFilePath> | ||
</PropertyGroup> | ||
|
||
<ReadLinesFromFile File="$(PaketCliToolFilePath)" > | ||
<Output TaskParameter="Lines" ItemName="PaketCliToolFileLines"/> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup Condition=" '@(PaketCliToolFileLines)' != '' " > | ||
<PaketCliToolFileLinesInfo Include="@(PaketCliToolFileLines)" > | ||
<PackageName>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0])</PackageName> | ||
<PackageVersion>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1])</PackageVersion> | ||
</PaketCliToolFileLinesInfo> | ||
<DotNetCliToolReference Include="%(PaketCliToolFileLinesInfo.PackageName)"> | ||
<Version>%(PaketCliToolFileLinesInfo.PackageVersion)</Version> | ||
</DotNetCliToolReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile> | ||
</PropertyGroup> | ||
|
||
</Target> | ||
|
||
<Target Name="PaketDisableDirectPack" AfterTargets="_IntermediatePack" BeforeTargets="GenerateNuspec" > | ||
<PropertyGroup> | ||
<ContinuePackingAfterGeneratingNuspec>false</ContinuePackingAfterGeneratingNuspec> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<Target Name="PaketOverrideNuspec" AfterTargets="GenerateNuspec" > | ||
<PropertyGroup> | ||
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath> | ||
<ContinuePackingAfterGeneratingNuspec>true</ContinuePackingAfterGeneratingNuspec> | ||
<UseNewPack>false</UseNewPack> | ||
<UseNewPack Condition=" '$(NuGetToolVersion)' != '4.0.0' ">true</UseNewPack> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_NuspecFiles Include="$(BaseIntermediateOutputPath)*.nuspec"/> | ||
</ItemGroup> | ||
|
||
<Exec Command='$(PaketCommand) fix-nuspecs files "@(_NuspecFiles)" references-file "$(PaketReferencesFilePath)" ' Condition="@(_NuspecFiles) != ''" /> | ||
|
||
<ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)"> | ||
<Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" /> | ||
</ConvertToAbsolutePath> | ||
|
||
<!-- Call Pack --> | ||
<PackTask Condition="$(UseNewPack)" | ||
PackItem="$(PackProjectInputFile)" | ||
PackageFiles="@(_PackageFiles)" | ||
PackageFilesToExclude="@(_PackageFilesToExclude)" | ||
PackageVersion="$(PackageVersion)" | ||
PackageId="$(PackageId)" | ||
Title="$(Title)" | ||
Authors="$(Authors)" | ||
Description="$(Description)" | ||
Copyright="$(Copyright)" | ||
RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)" | ||
LicenseUrl="$(PackageLicenseUrl)" | ||
ProjectUrl="$(PackageProjectUrl)" | ||
IconUrl="$(PackageIconUrl)" | ||
ReleaseNotes="$(PackageReleaseNotes)" | ||
Tags="$(PackageTags)" | ||
DevelopmentDependency="$(DevelopmentDependency)" | ||
BuildOutputInPackage="@(_BuildOutputInPackage)" | ||
TargetPathsToSymbols="@(_TargetPathsToSymbols)" | ||
TargetFrameworks="@(_TargetFrameworks)" | ||
AssemblyName="$(AssemblyName)" | ||
PackageOutputPath="$(PackageOutputAbsolutePath)" | ||
IncludeSymbols="$(IncludeSymbols)" | ||
IncludeSource="$(IncludeSource)" | ||
PackageTypes="$(PackageType)" | ||
IsTool="$(IsTool)" | ||
RepositoryUrl="$(RepositoryUrl)" | ||
RepositoryType="$(RepositoryType)" | ||
SourceFiles="@(_SourceFiles->Distinct())" | ||
NoPackageAnalysis="$(NoPackageAnalysis)" | ||
MinClientVersion="$(MinClientVersion)" | ||
Serviceable="$(Serviceable)" | ||
FrameworkAssemblyReferences="@(_FrameworkAssemblyReferences)" | ||
ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)" | ||
NuspecOutputPath="$(BaseIntermediateOutputPath)" | ||
IncludeBuildOutput="$(IncludeBuildOutput)" | ||
BuildOutputFolder="$(BuildOutputTargetFolder)" | ||
ContentTargetFolders="$(ContentTargetFolders)" | ||
RestoreOutputPath="$(RestoreOutputAbsolutePath)" | ||
NuspecFile="$(NuspecFileAbsolutePath)" | ||
NuspecBasePath="$(NuspecBasePath)" | ||
NuspecProperties="$(NuspecProperties)"/> | ||
|
||
<PackTask Condition="! $(UseNewPack)" | ||
PackItem="$(PackProjectInputFile)" | ||
PackageFiles="@(_PackageFiles)" | ||
PackageFilesToExclude="@(_PackageFilesToExclude)" | ||
PackageVersion="$(PackageVersion)" | ||
PackageId="$(PackageId)" | ||
Title="$(Title)" | ||
Authors="$(Authors)" | ||
Description="$(Description)" | ||
Copyright="$(Copyright)" | ||
RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)" | ||
LicenseUrl="$(PackageLicenseUrl)" | ||
ProjectUrl="$(PackageProjectUrl)" | ||
IconUrl="$(PackageIconUrl)" | ||
ReleaseNotes="$(PackageReleaseNotes)" | ||
Tags="$(PackageTags)" | ||
TargetPathsToAssemblies="@(_TargetPathsToAssemblies->'%(FinalOutputPath)')" | ||
TargetPathsToSymbols="@(_TargetPathsToSymbols)" | ||
TargetFrameworks="@(_TargetFrameworks)" | ||
AssemblyName="$(AssemblyName)" | ||
PackageOutputPath="$(PackageOutputAbsolutePath)" | ||
IncludeSymbols="$(IncludeSymbols)" | ||
IncludeSource="$(IncludeSource)" | ||
PackageTypes="$(PackageType)" | ||
IsTool="$(IsTool)" | ||
RepositoryUrl="$(RepositoryUrl)" | ||
RepositoryType="$(RepositoryType)" | ||
SourceFiles="@(_SourceFiles->Distinct())" | ||
NoPackageAnalysis="$(NoPackageAnalysis)" | ||
MinClientVersion="$(MinClientVersion)" | ||
Serviceable="$(Serviceable)" | ||
AssemblyReferences="@(_References)" | ||
ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)" | ||
NuspecOutputPath="$(BaseIntermediateOutputPath)" | ||
IncludeBuildOutput="$(IncludeBuildOutput)" | ||
BuildOutputFolder="$(BuildOutputTargetFolder)" | ||
ContentTargetFolders="$(ContentTargetFolders)" | ||
RestoreOutputPath="$(RestoreOutputAbsolutePath)" | ||
NuspecFile="$(NuspecFileAbsolutePath)" | ||
NuspecBasePath="$(NuspecBasePath)" | ||
NuspecProperties="$(NuspecProperties)"/> | ||
</Target> | ||
<!--/+:cnd:noEmit--> | ||
</Project> |
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,8 @@ | ||
using System; | ||
|
||
namespace before | ||
{ | ||
public class Class1 | ||
{ | ||
} | ||
} |
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,6 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
<Import Project=".paket\Paket.Restore.targets" /> | ||
</Project> |
3 changes: 3 additions & 0 deletions
3
integrationtests/scenarios/i002528-3/before/paket.dependencies
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,3 @@ | ||
source https://api.nuget.org/v3/index.json | ||
|
||
framework: netstandard20 |
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 @@ | ||
|
Empty file.
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,5 @@ | ||
namespace before | ||
|
||
module Say = | ||
let hello name = | ||
printfn "Hello %s" name |
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,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Library.fs" /> | ||
</ItemGroup> | ||
<Import Project=".paket\Paket.Restore.targets" /> | ||
</Project> |
5 changes: 5 additions & 0 deletions
5
integrationtests/scenarios/i002528-4/before/paket.dependencies
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,5 @@ | ||
source https://api.nuget.org/v3/index.json | ||
|
||
framework: netstandard20 | ||
|
||
nuget FSharp.Core |
Oops, something went wrong.