Skip to content

Commit

Permalink
[mono] Make HelloWorld and wasm samples compile again (#46113)
Browse files Browse the repository at this point in the history
* [mono] Make HelloWorld sample compile again

Since 296aaf8 it seems we need
`$(NetCoreAppToolCurrent)` as the `TargetFramework`

* Also fixup wasm samples
  • Loading branch information
lambdageek authored Dec 16, 2020
1 parent 7e44a6a commit 00199c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mono/netcore/sample/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
<EnableTargetingPackDownload>false</EnableTargetingPackDownload>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/mono/netcore/sample/wasm/browser/WasmSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>Exe</OutputType>
<OutputPath>bin</OutputPath>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
<TargetArchitecture>wasm</TargetArchitecture>
<TargetOS>Browser</TargetOS>
<MicrosoftNetCoreAppRuntimePackRidDir>$(ArtifactsBinDir)microsoft.netcore.app.runtime.browser-wasm\$(Configuration)\runtimes\browser-wasm\</MicrosoftNetCoreAppRuntimePackRidDir>
Expand Down
2 changes: 1 addition & 1 deletion src/mono/netcore/sample/wasm/console/WasmSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>Exe</OutputType>
<OutputPath>bin</OutputPath>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
<TargetArchitecture>wasm</TargetArchitecture>
<TargetOS>Browser</TargetOS>
<MicrosoftNetCoreAppRuntimePackRidDir>$(ArtifactsBinDir)microsoft.netcore.app.runtime.browser-wasm\$(Configuration)\runtimes\browser-wasm\</MicrosoftNetCoreAppRuntimePackRidDir>
Expand Down

0 comments on commit 00199c5

Please sign in to comment.