File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ // See https://aka.ms/new-console-template for more information
2+ Console . WriteLine ( "Hello, World!" ) ;
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <OutputType >Exe</OutputType >
5+ <TargetFramework >net6.0</TargetFramework >
6+ <ImplicitUsings >enable</ImplicitUsings >
7+ <Nullable >enable</Nullable >
8+ </PropertyGroup >
9+
10+ <Target Name =" EchoRuntimeIdentifier" AfterTargets =" Restore" BeforeTargets =" BeforeBuild" >
11+ <Exec Command =" echo 'RuntimeIdentifier is $(RuntimeIdentifier)'" />
12+ </Target >
13+
14+ </Project >
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " use-current-runtime" ,
3+ "enabled" : true ,
4+ "requiresSdk" : true ,
5+ "version" : " 6.0" ,
6+ "versionSpecific" : false ,
7+ "type" : " bash" ,
8+ "cleanup" : true ,
9+ "ignoredRIDs" :[
10+ ]
11+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/bash
2+
3+ set -euo pipefail
4+
5+ set -x
6+
7+ PORTABLE_RID=" $( ../runtime-id --portable) "
8+
9+ DOTNET_BUILD_OUTPUT=$( dotnet build --use-current-runtime)
10+
11+ if echo " $DOTNET_BUILD_OUTPUT " | grep -q " RuntimeIdentifier is $PORTABLE_RID " ; then
12+ echo " PASS: --use-current-runtime uses portable rid."
13+ else
14+ echo " FAIL: --use-current-runtime does not use portable rid."
15+ exit 1
16+ fi
You can’t perform that action at this time.
0 commit comments