提交 2bf3a16c 编写于 作者: B Brett V. Forsgren 提交者: Kevin Ransom (msft)

Merge dev16.0-future to dev16.0 (#5861)

* Update for dev 16.0

* Finish targeting `net472` for future dev16 work. (#5719)

* don't set `$(TargetFramework)` on non-SDK projects

* HostedCompilerServer and PEVerify should explicitly be `net472`

* don't copy System.ValueTuple.dll for tests because it's not deployed any more

* add net472 support where System.ValueTuple can come from mscorlib

* force target framework 4.6 on Linux/Mono
上级 41d31c10
......@@ -32,7 +32,6 @@ folder "InstallDir:Common7\IDE\CommonExtensions\Microsoft\FSharp"
file source="$(BinariesFolder)\net40\bin\Microsoft.Portable.FSharp.Targets"
file source="$(BinariesFolder)\net40\bin\System.Collections.Immutable.dll"
file source="$(BinariesFolder)\net40\bin\System.Reflection.Metadata.dll"
file source="$(BinariesFolder)\net40\bin\System.ValueTuple.dll"
file source="$(BinariesFolder)\net40\bin\Microsoft.FSharp.NetSdk.props"
file source="$(BinariesFolder)\net40\bin\Microsoft.FSharp.NetSdk.targets"
file source="$(BinariesFolder)\net40\bin\Microsoft.FSharp.Overrides.NetSdk.targets"
......
......@@ -56,7 +56,9 @@
<Import Project="FSharpSource.Profiles.targets" />
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='net40'">
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v4.6</TargetFrameworkVersion>
<!-- target .NET 4.7.2, except on Mono which doesn't have 4.7.2 reference assemblies yet -->
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == '' AND '$(MonoPackaging)' != 'true'">v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == '' AND '$(MonoPackaging)' == 'true'">v4.6</TargetFrameworkVersion>
<TargetFrameworkProfile></TargetFrameworkProfile>
<!-- MSbuild works out the assembly references -->
</PropertyGroup>
......
......@@ -29,7 +29,7 @@
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Tasks.Core.dll" />
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.Reflection.Metadata.dll" />
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.Collections.Immutable.dll" />
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.ValueTuple.dll" />
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.ValueTuple.dll" Condition="'$(MonoPackaging)' == 'true'" />
</ItemGroup>
</Target>
<Import Project="$(FSharpSourcesRoot)\.nuget\NuGet.targets" Condition="Exists('$(FSharpSourcesRoot)\.nuget\NuGet.targets')" />
......@@ -673,17 +673,19 @@
<Reference Include="System.Numerics" />
<Reference Include="ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="System.Reflection.Metadata">
<HintPath>..\..\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' != 'true'">..\..\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\netstandard2.0\System.Reflection.Metadata.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' == 'true'">..\..\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Immutable">
<HintPath>..\..\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\netstandard1.0\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple">
<HintPath>..\..\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' != 'true'">..\..\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' == 'true'">..\..\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\netstandard1.0\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression">
<HintPath>..\..\..\packages\System.IO.Compression.$(SystemIoCompressionPackageVersion)\lib\net46\System.IO.Compression.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple" Condition="'$(MonoPackaging)' == 'true'">
<HintPath>..\..\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition=" '$(TargetDotnetProfile)' != 'coreclr' AND '$(MonoPackaging)' != 'true' ">
<Reference Include="Microsoft.Build.Framework">
......
......@@ -13,7 +13,6 @@
<ProjectGuid>{d5870cf0-ed51-4cbc-b3d7-6f56da84ac06}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>FSharp.Compiler.Server.Shared</AssemblyName>
<TargetFrameworkVersion Condition="'$(TargetDotnetProfile)' != 'coreclr'">v4.6</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="fsi" />
......
......@@ -461,10 +461,12 @@
<Reference Include="System.Windows.Forms" />
<Reference Include="ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="System.Reflection.Metadata">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' != 'true'">$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\netstandard2.0\System.Reflection.Metadata.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' == 'true'">$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Immutable">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' != 'true'">$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
<HintPath Condition="'$(MonoPackaging)' == 'true'">$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
......
......@@ -74,11 +74,23 @@ module internal Microsoft.FSharp.Compiler.MSBuildReferenceResolver
//let private Net452 = "v4.5.2" // not available in Dev15 MSBuild version
#if MSBUILD_AT_LEAST_14
[<Literal>]
[<Literal>]
let private Net46 = "v4.6"
[<Literal>]
[<Literal>]
let private Net461 = "v4.6.1"
[<Literal>]
let private Net462 = "v4.6.2"
[<Literal>]
let private Net47 = "v4.7"
[<Literal>]
let private Net471 = "v4.7.1"
[<Literal>]
let private Net472 = "v4.7.2"
#endif
/// Get the path to the .NET Framework implementation assemblies by using ToolLocationHelper.GetPathToDotNetFramework.
......@@ -97,6 +109,10 @@ module internal Microsoft.FSharp.Compiler.MSBuildReferenceResolver
//| Net452 -> Some TargetDotNetFrameworkVersion.Version452 // not available in Dev15 MSBuild version
| Net46 -> Some TargetDotNetFrameworkVersion.Version46
| Net461 -> Some TargetDotNetFrameworkVersion.Version461
| Net462 -> Some TargetDotNetFrameworkVersion.Version462
| Net47 -> Some TargetDotNetFrameworkVersion.Version47
| Net471 -> Some TargetDotNetFrameworkVersion.Version471
| Net472 -> Some TargetDotNetFrameworkVersion.Version472
#endif
| _ -> assert false; None
match v with
......@@ -122,7 +138,11 @@ module internal Microsoft.FSharp.Compiler.MSBuildReferenceResolver
let HighestInstalledNetFrameworkVersion() =
try
#if MSBUILD_AT_LEAST_14
if box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version461)) <> null then Net461
if box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version472)) <> null then Net472
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version471)) <> null then Net471
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version47)) <> null then Net47
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version462)) <> null then Net462
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version461)) <> null then Net461
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version46)) <> null then Net46
// 4.5.2 enumeration is not available in Dev15 MSBuild version
//elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version452)) <> null then Net452
......
......@@ -26,7 +26,6 @@
<AllowCrossTargeting>true</AllowCrossTargeting>
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>
<Win32Resource>fsi.res</Win32Resource>
<TargetFrameworkVersion Condition="'$(TargetDotnetProfile)' != 'coreclr'">v4.6</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="console.fs">
......
......@@ -21,7 +21,6 @@
<AllowCrossTargeting>true</AllowCrossTargeting>
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>
<Win32Resource>..\fsi\fsi.res</Win32Resource>
<TargetFrameworkVersion Condition="'$(TargetDotnetProfile)' != 'coreclr'">v4.6</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\fsi\console.fs">
......
......@@ -72,7 +72,8 @@ module internal MsBuildAdapters =
open Microsoft.FSharp.Core.ReflectionAdapters
/// <summary>
/// Used to specify the targeted version of the .NET Framework for some methods of ToolLocationHelper.
/// Used to specify the targeted version of the .NET Framework for some methods of ToolLocationHelper. This is meant to mimic
/// the official version here: https://source.dot.net/#q=TargetDotNetFrameworkVersion.
/// </summary>
type public TargetDotNetFrameworkVersion =
| Version11 = 0
......@@ -85,7 +86,11 @@ module internal MsBuildAdapters =
| Version46 = 7
| Version461 = 8
| Version452 = 9
| VersionLatest = 8 //TargetDotNetFrameworkVersion.Version461
| Version462 = 10
| Version47 = 11
| Version471 = 12
| Version472 = 13
| VersionLatest = 10 //TargetDotNetFrameworkVersion.Version462
/// <summary>
/// Used to specify the targeted bitness of the .NET Framework for some methods of ToolLocationHelper
......@@ -114,7 +119,11 @@ module internal ToolLocationHelper =
let dotNetFrameworkVersion451 = Version(4, 5, 1)
let dotNetFrameworkVersion452 = Version(4, 5, 2)
let dotNetFrameworkVersion46 = Version(4, 6)
let dotNetFrameworkVersion461 = Version(4, 6, 1)
let dotNetFrameworkVersion461 = Version(4, 6, 1)
let dotNetFrameworkVersion462 = Version(4, 6, 2)
let dotNetFrameworkVersion47 = Version(4, 7)
let dotNetFrameworkVersion471 = Version(4, 7, 1)
let dotNetFrameworkVersion472 = Version(4, 7, 2)
// visual studio versions.
let visualStudioVersion100 = new Version(10, 0);
......@@ -206,6 +215,10 @@ module internal ToolLocationHelper =
| TargetDotNetFrameworkVersion.Version452 -> dotNetFrameworkVersion452
| TargetDotNetFrameworkVersion.Version46 -> dotNetFrameworkVersion46
| TargetDotNetFrameworkVersion.Version461 -> dotNetFrameworkVersion461
| TargetDotNetFrameworkVersion.Version462 -> dotNetFrameworkVersion462
| TargetDotNetFrameworkVersion.Version47 -> dotNetFrameworkVersion47
| TargetDotNetFrameworkVersion.Version471 -> dotNetFrameworkVersion471
| TargetDotNetFrameworkVersion.Version472 -> dotNetFrameworkVersion472
| _ -> raise (getArgumentException version)
let complusInstallRoot = Environment.GetEnvironmentVariable("COMPLUS_INSTALLROOT")
......@@ -745,6 +758,10 @@ module internal ToolLocationHelper =
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion452 visualStudioVersion150 // v4.5.2
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion46 visualStudioVersion140 // v4.6
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion461 visualStudioVersion150 // v4.6.1
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion462 visualStudioVersion150 // v4.6.2
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion47 visualStudioVersion150 // v4.7
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion471 visualStudioVersion150 // v4.7.1
CreateDotNetFrameworkSpecForV4 dotNetFrameworkVersion472 visualStudioVersion150 // v4.7.2
|]
array.ToDictionary<DotNetFrameworkSpec, Version>(fun spec -> spec.Version)
......
......@@ -43,10 +43,6 @@
<Reference Include="System" />
<Reference Include="System.Numerics" Condition="'$(TargetDotnetProfile)' == 'net40'" />
<Reference Include="System.Core" />
<Reference Include="System.ValueTuple">
<HintPath>..\..\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
<HintPath>..\..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="NunitHelpers.fs" />
......
......@@ -51,10 +51,8 @@
<Private>True</Private>
<HintPath Condition="'$(TargetDotnetProfile)' == 'net40'">$(FsCheckLibDir)\net452\FsCheck.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple">
<HintPath>..\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll</HintPath>
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll</HintPath>
<Private>True</Private>
<Reference Include="System.ValueTuple" Condition="'$(MonoPackaging)' == 'true'">
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
......
......@@ -47,16 +47,15 @@
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.Collections.Immutable">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutablePackageVersion)\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reflection.Metadata">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath>
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutableVersion)\lib\netstandard1.0\System.Collections.Immutable.dll</HintPath>
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.$(SystemReflectionMetadataPackageVersion)\lib\netstandard2.0\System.Reflection.Metadata.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reflection.Metadata">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.1.6.0\lib\netstandard1.1\System.Reflection.Metadata.dll</HintPath>
<HintPath>$(FSharpSourcesRoot)\..\packages\System.Reflection.Metadata.1.6.0\lib\netstandard2.0\System.Reflection.Metadata.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework">
......
......@@ -25,7 +25,7 @@ printing/z.output.test.*.txt
printing/z.raw.output.test.*.txt
printing/z.output.test.*.diff
quotes/cslib.dll
cslib*.dll
parsing/crlf.dll
parsing/crlf.pdb
......
......@@ -162,7 +162,7 @@ let config configurationName envVars =
let CSC = requireFile (packagesDir ++ "Microsoft.Net.Compilers.2.7.0" ++ "tools" ++ "csc.exe")
let ILDASM = requireFile (packagesDir ++ ("runtime.win-" + architectureMoniker + ".Microsoft.NETCore.ILDAsm.2.0.3") ++ "runtimes" ++ ("win-" + architectureMoniker) ++ "native" ++ "ildasm.exe")
let coreclrdll = requireFile (packagesDir ++ ("runtime.win-" + architectureMoniker + ".Microsoft.NETCore.Runtime.CoreCLR.2.0.3") ++ "runtimes" ++ ("win-" + architectureMoniker) ++ "native" ++ "coreclr.dll")
let PEVERIFY = requireFile (SCRIPT_ROOT ++ ".." ++ "fsharpqa" ++ "testenv" ++ "src" ++ "PEVerify" ++ "bin" ++ configurationName ++ "net46" ++ "PEVerify.exe")
let PEVERIFY = requireFile (SCRIPT_ROOT ++ ".." ++ "fsharpqa" ++ "testenv" ++ "src" ++ "PEVerify" ++ "bin" ++ configurationName ++ "net472" ++ "PEVerify.exe")
let FSI_FOR_SCRIPTS =
match envVars |> Map.tryFind "_fsiexe" with
| Some fsiexe when (not (String.IsNullOrWhiteSpace fsiexe)) -> requireFile (SCRIPT_ROOT ++ ".." ++ ".." ++ (fsiexe.Trim([| '\"' |])))
......
......@@ -450,8 +450,6 @@ module CoreTests =
fsc cfg "%s -a -o:lib.dll -g" cfg.fsc_flags ["lib.fs"]
copy_y cfg (cfg.FSCBinPath ++ "System.ValueTuple.dll") ("." ++ "System.ValueTuple.dll")
peverify cfg "lib.dll"
csc cfg """/nologo /target:library /r:"%s" /r:lib.dll /out:lib2.dll /langversion:7.2""" cfg.FSCOREDLLPATH ["lib2.cs"]
......@@ -760,8 +758,6 @@ module CoreTests =
fsc cfg "%s -o:test.exe -r cslib.dll -g" cfg.fsc_flags ["test.fsx"]
copy_y cfg (cfg.FSCBinPath ++ "System.ValueTuple.dll") ("." ++ "System.ValueTuple.dll")
peverify cfg "test.exe"
begin
......@@ -1899,7 +1895,6 @@ module TypecheckTests =
let ``sigs pos27`` () =
let cfg = testConfig "typecheck/sigs"
fsc cfg "%s --target:exe -o:pos27.exe" cfg.fsc_flags ["pos27.fs"]
copy_y cfg (cfg.FSCBinPath ++ "System.ValueTuple.dll") ("." ++ "System.ValueTuple.dll")
peverify cfg "pos27.exe"
[<Test>]
......
......@@ -15,11 +15,6 @@
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
.ver 4:5:0:0
}
.assembly extern System.ValueTuple
{
.publickeytoken = (CC 7B 13 FF CD 2D DD 51 ) // .{...-.Q
.ver 4:0:1:0
}
.assembly ValueTupleAliasConstructor
{
.custom instance void [FSharp.Core]Microsoft.FSharp.Core.FSharpInterfaceDataVersionAttribute::.ctor(int32,
......@@ -34,20 +29,20 @@
}
.mresource public FSharpSignatureData.ValueTupleAliasConstructor
{
// Offset: 0x00000000 Length: 0x000001EA
// Offset: 0x00000000 Length: 0x000001E8
}
.mresource public FSharpOptimizationData.ValueTupleAliasConstructor
{
// Offset: 0x000001F0 Length: 0x00000061
}
.module ValueTupleAliasConstructor.exe
// MVID: {5B9C53DD-A8CF-BB34-A745-0383DD539C5B}
// MVID: {5BB658A2-A8CF-BB34-A745-0383A258B65B}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003 // WINDOWS_CUI
.corflags 0x00000001 // ILONLY
// Image base: 0x01B00000
// Image base: 0x01650000
// =============== CLASS MEMBERS DECLARATION ===================
......@@ -74,8 +69,8 @@
.line 3,3 : 9,22 'c:\\kevinransom\\visualfsharp\\tests\\fsharpqa\\Source\\CodeGen\\EmittedIL\\Tuples\\ValueTupleAliasConstructor.fs'
IL_0000: ldc.i4.2
IL_0001: ldc.i4.2
IL_0002: newobj instance void valuetype [System.ValueTuple]System.ValueTuple`2<int32,int32>::.ctor(!0,
!1)
IL_0002: newobj instance void valuetype [mscorlib]System.ValueTuple`2<int32,int32>::.ctor(!0,
!1)
IL_0007: pop
IL_0008: ret
} // end of method $ValueTupleAliasConstructor::main@
......
......@@ -265,12 +265,12 @@ if($ENV{REDUCED_RUNTIME} ne "1"){
my $PEVERIFY = $ENV{PEVERIFY};
unless(defined($PEVERIFY)) {
my $scriptPath = dirname(__FILE__);
$PEVERIFY = "$scriptPath\\..\\testenv\\src\\PEVerify\\bin\\Release\\net46\\PEVerify.exe";
$PEVERIFY = "$scriptPath\\..\\testenv\\src\\PEVerify\\bin\\Release\\net472\\PEVerify.exe";
if (-e $PEVERIFY) {
$ENV{PEVERIFY} = $PEVERIFY;
}
else {
$ENV{PEVERIFY} = "$scriptPath\\..\\testenv\\src\\PEVerify\\bin\\Debug\\net46\\PEVerify.exe";
$ENV{PEVERIFY} = "$scriptPath\\..\\testenv\\src\\PEVerify\\bin\\Debug\\net472\\PEVerify.exe";
}
}
......
......@@ -12,7 +12,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>HostedCompilerServer</RootNamespace>
<AssemblyName>HostedCompilerServer</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<OutputPath>..\..\bin</OutputPath>
<CustomOutputPath>true</CustomOutputPath>
......@@ -49,11 +49,6 @@
<Project>{2E4D67B4-522D-4CF7-97E4-BA940F0B18F3}</Project>
<Name>FSharp.Compiler.Private</Name>
</ProjectReference>
<Reference Include="System.ValueTuple">
<HintPath>$(FSharpSourcesRoot)\..\packages\System.ValueTuple.$(SystemValueTuplePackageVersion)\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
<HintPath>$(FSharpSourcesRoot)\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
<Private>true</Private>
</Reference>
</ItemGroup>
<Import Project="$(FSharpSourcesRoot)\FSharpSource.targets" />
......
......@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net46</TargetFramework>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
</Project>
......@@ -48,7 +48,7 @@ type PEVerifier () =
Some ("pedump", "--verify all")
else
let peverifyPath configuration =
Path.Combine(__SOURCE_DIRECTORY__, "..", "fsharpqa", "testenv", "src", "PEVerify", "bin", configuration, "net46", "PEVerify.exe")
Path.Combine(__SOURCE_DIRECTORY__, "..", "fsharpqa", "testenv", "src", "PEVerify", "bin", configuration, "net472", "PEVerify.exe")
let peverify =
if File.Exists(peverifyPath "Debug") then peverifyPath "Debug"
else peverifyPath "Release"
......
......@@ -3,8 +3,8 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('FSharp.Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFramework>net472</TargetFramework>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<UseVsMicroBuildAssemblyVersion>true</UseVsMicroBuildAssemblyVersion>
</PropertyGroup>
......
......@@ -3,8 +3,8 @@
<Import Project="Directory.Build.props" />
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFramework>net472</TargetFramework>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<ImportVsSDK>true</ImportVsSDK>
<IsPackage>true</IsPackage>
<GeneratePkgDefFile>false</GeneratePkgDefFile>
......
......@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<OutputType>Library</OutputType>
<ImportVsSDK>true</ImportVsSDK>
<CreateVsixContainer>false</CreateVsixContainer>
......
......@@ -24,9 +24,7 @@
<RegisterForComInterop>false</RegisterForComInterop>
<WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
<NoWarn>40026;42105;42107;42353</NoWarn>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<ImportVsSDK>true</ImportVsSDK>
<CreateVsixContainer>false</CreateVsixContainer>
<DeployExtension>false</DeployExtension>
......
......@@ -14,7 +14,6 @@ Imports Microsoft.VisualStudio.Editors
Imports OLE = Microsoft.VisualStudio.OLE.Interop
Imports Shell = Microsoft.VisualStudio.Shell
Imports Interop = Microsoft.VisualStudio.OLE.Interop
Imports Microsoft.VisualStudio.Editors.PropertyPages
Imports System.Runtime.InteropServices
Imports System.ComponentModel
......
......@@ -10,8 +10,6 @@ Imports System.Diagnostics
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
Imports Interop = Microsoft.VisualStudio.Editors.Interop
Namespace Microsoft.VisualStudio.Editors.PropertyPages
'--------------------------------------------------------------------------
......@@ -21,7 +19,7 @@ Namespace Microsoft.VisualStudio.Editors.PropertyPages
'--------------------------------------------------------------------------
<CLSCompliant(False)> _
Friend NotInheritable Class BuildEventCommandLineDialogService
Implements Interop.IVsBuildEventCommandLineDialogService
Implements Microsoft.VisualStudio.Editors.Interop.IVsBuildEventCommandLineDialogService
Private m_serviceProvider As IServiceProvider
......@@ -29,8 +27,8 @@ Namespace Microsoft.VisualStudio.Editors.PropertyPages
m_serviceProvider = sp
End Sub
Function EditCommandLine(ByVal WindowText As String, ByVal HelpID As String, ByVal OriginalCommandLine As String, ByVal MacroProvider As Interop.IVsBuildEventMacroProvider, ByRef Result As String) As Integer _
Implements Interop.IVsBuildEventCommandLineDialogService.EditCommandLine
Function EditCommandLine(ByVal WindowText As String, ByVal HelpID As String, ByVal OriginalCommandLine As String, ByVal MacroProvider As Microsoft.VisualStudio.Editors.Interop.IVsBuildEventMacroProvider, ByRef Result As String) As Integer _
Implements Microsoft.VisualStudio.Editors.Interop.IVsBuildEventCommandLineDialogService.EditCommandLine
Dim frm As New BuildEventCommandLineDialog
Dim i As Integer
......
......@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<OutputType>Library</OutputType>
<ImportVsSDK>true</ImportVsSDK>
<CreateVsixContainer>false</CreateVsixContainer>
......
......@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<OutputType>Library</OutputType>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<UsePackageTargetFallbackHack>true</UsePackageTargetFallbackHack>
......
......@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<OutputType>Library</OutputType>
<NoWarn>$(NoWarn);45;47;52;58;75</NoWarn>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
......
......@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<OutputType>Library</OutputType>
<NoWarn>$(NoWarn);58;75</NoWarn>
<DefineConstants>NO_PROJECTCRACKER;$(DefineConstants)</DefineConstants>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册