未验证 提交 9fae71f1 编写于 作者: V Vlad Zarytovskii 提交者: GitHub

Set plain dotnet build in devcontainer (#14991)

* Set plain dotnet build in devcontainer

* Set output explicitly

* Update launch and tasks specs
上级 56123ad2
...@@ -21,3 +21,6 @@ RUN apt-get update \ ...@@ -21,3 +21,6 @@ RUN apt-get update \
# Switch back to dialog for any ad-hoc use of apt-get # Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog ENV DEBIAN_FRONTEND=dialog
# Make sure we can build using plain dotnet
ENV BUILDING_USING_DOTNET=true
\ No newline at end of file
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
"stopAtEntry": false, "stopAtEntry": false,
"justMyCode": true, "justMyCode": true,
"enableStepFiltering": true, "enableStepFiltering": true,
"requireExactSource": false,
"symbolOptions": { "symbolOptions": {
"searchMicrosoftSymbolServer": true, "searchMicrosoftSymbolServer": true,
"searchNuGetOrgSymbolServer": true "searchNuGetOrgSymbolServer": true
...@@ -62,6 +63,7 @@ ...@@ -62,6 +63,7 @@
"stopAtEntry": false, "stopAtEntry": false,
"justMyCode": true, "justMyCode": true,
"enableStepFiltering": true, "enableStepFiltering": true,
"requireExactSource": false,
"symbolOptions": { "symbolOptions": {
"searchMicrosoftSymbolServer": true, "searchMicrosoftSymbolServer": true,
"searchNuGetOrgSymbolServer": true "searchNuGetOrgSymbolServer": true
...@@ -84,6 +86,7 @@ ...@@ -84,6 +86,7 @@
}, },
"justMyCode": true, "justMyCode": true,
"enableStepFiltering": false, "enableStepFiltering": false,
"requireExactSource": false
} }
] ]
} }
...@@ -15,49 +15,42 @@ ...@@ -15,49 +15,42 @@
}, },
"tasks": [ "tasks": [
{ {
"label": "Full Build (Debug)", "label": "Build (Debug)",
"command": "./build.sh", "command": "dotnet",
"type": "shell", "type": "shell",
"args": [ "args": [
"-c Debug" "build",
"-c Debug",
"FSharp.Compiler.Service.sln"
], ],
"windows": { "windows": {
"command": "${workspaceFolder}/Build.cmd", "command": "dotnet",
"args": [ "args": [
"build",
"-c Debug", "-c Debug",
"-noVisualStudio" "FSharp.Compiler.Service.sln"
], ],
}, },
"problemMatcher": "$msCompile", "problemMatcher": "$msCompile",
"group": "build", "group": "build",
}, },
{ {
"label": "Full Build (Release)", "label": "Build (Release)",
"command": "./build.sh", "command": "dotnet",
"type": "shell", "type": "shell",
"args": [ "args": [
"-c Release" "build",
],
"windows": {
"command": "${workspaceFolder}/Build.cmd",
"args": [
"-c Release", "-c Release",
"-noVisualStudio" "FSharp.Compiler.Service.sln"
], ],
}, "windows": {
"problemMatcher": "$msCompile",
"group": "build",
},
{
"label": "Rebuild (Debug)",
"command": "dotnet", "command": "dotnet",
"type": "shell",
"args": [ "args": [
"build", "build",
"-c", "-c Release",
"Debug", "FSharp.Compiler.Service.sln"
"${workspaceFolder}/FSharp.sln"
], ],
},
"problemMatcher": "$msCompile", "problemMatcher": "$msCompile",
"group": "build", "group": "build",
}, },
...@@ -75,20 +68,6 @@ ...@@ -75,20 +68,6 @@
}, },
"problemMatcher": "$msCompile", "problemMatcher": "$msCompile",
"group": "build" "group": "build"
},
{
"label": "Run tests (all but integration)",
"command": "./build.sh",
"type": "shell",
"args": [
"-testAllButIntegration"
],
"windows": {
"command": "${workspaceFolder}/Build.cmd",
},
"problemMatcher": "$msCompile",
"group": "test"
} }
// TODO: Add more test tasks if necessary.
] ]
} }
\ No newline at end of file
...@@ -261,6 +261,7 @@ function BuildSolution([string] $solutionName) { ...@@ -261,6 +261,7 @@ function BuildSolution([string] $solutionName) {
/p:TestTargetFrameworks=$testTargetFrameworks ` /p:TestTargetFrameworks=$testTargetFrameworks `
/p:DotNetBuildFromSource=$sourceBuild ` /p:DotNetBuildFromSource=$sourceBuild `
/p:CompressAllMetadata=$CompressAllMetadata ` /p:CompressAllMetadata=$CompressAllMetadata `
/p:BUILDING_USING_DOTNET=false `
/v:$verbosity ` /v:$verbosity `
$suppressExtensionDeployment ` $suppressExtensionDeployment `
@properties @properties
......
...@@ -295,6 +295,7 @@ function BuildSolution { ...@@ -295,6 +295,7 @@ function BuildSolution {
/p:QuietRestore=$quiet_restore \ /p:QuietRestore=$quiet_restore \
/p:QuietRestoreBinaryLog="$binary_log" \ /p:QuietRestoreBinaryLog="$binary_log" \
/p:ArcadeBuildFromSource=$source_build \ /p:ArcadeBuildFromSource=$source_build \
/p:BUILDING_USING_DOTNET=false \
$properties $properties
fi fi
} }
......
...@@ -488,6 +488,11 @@ ...@@ -488,6 +488,11 @@
</None> </None>
</ItemGroup> </ItemGroup>
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'"> <ItemGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
<!-- We are setting TFM explicitly here, since we are only using fslexyacc's dlls in msbuild --> <!-- We are setting TFM explicitly here, since we are only using fslexyacc's dlls in msbuild -->
<ProjectReference Include="$(RepoRoot)\buildtools\fslex\fslex.fsproj" ReferenceOutputAssembly="False"> <ProjectReference Include="$(RepoRoot)\buildtools\fslex\fslex.fsproj" ReferenceOutputAssembly="False">
......
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
<CompressMetadata Condition="'$(CompressAllMetadata)' != 'true'">false</CompressMetadata> <CompressMetadata Condition="'$(CompressAllMetadata)' != 'true'">false</CompressMetadata>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
</PropertyGroup>
<Target Name="CopyToBuiltBin" BeforeTargets="BuiltProjectOutputGroup" AfterTargets="CoreCompile"> <Target Name="CopyToBuiltBin" BeforeTargets="BuiltProjectOutputGroup" AfterTargets="CoreCompile">
<PropertyGroup> <PropertyGroup>
<BuildOutputGroupLocation>$(BaseOutputPath)\$(Configuration)\$(TargetFramework)</BuildOutputGroupLocation> <BuildOutputGroupLocation>$(BaseOutputPath)\$(Configuration)\$(TargetFramework)</BuildOutputGroupLocation>
......
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
<PlatformTarget Condition="'$(TargetFramework)' == 'net472'">x86</PlatformTarget> <PlatformTarget Condition="'$(TargetFramework)' == 'net472'">x86</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('fsc.targets', '$(MSBuildThisFileDirectory)../'))" /> <Import Project="$([MSBuild]::GetPathOfFileAbove('fsc.targets', '$(MSBuildThisFileDirectory)../'))" />
</Project> </Project>
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
<PlatformTarget Condition="'$(TargetFramework)' == 'net472'">x86</PlatformTarget> <PlatformTarget Condition="'$(TargetFramework)' == 'net472'">x86</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('fsi.targets', '$(MSBuildThisFileDirectory)../'))" /> <Import Project="$([MSBuild]::GetPathOfFileAbove('fsi.targets', '$(MSBuildThisFileDirectory)../'))" />
</Project> </Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册