Skip to content

Commit 194fc5f

Browse files
authored
Tests build fix with BuildAsStandalone (#94208)
Without this patch build of these tests fails with "No entry point declared for executable" with BuildAsStandalone. Before #91560 they were built as OutputType=Library and these are actually not launched during testing, but are used as libs.
1 parent 03c30a7 commit 194fc5f

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

src/tests/baseservices/callconvs/CallFunctionPointers.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="CallFunctionPointers.il" />
47
</ItemGroup>

src/tests/baseservices/compilerservices/RuntimeWrappedException/StringThrower.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="StringThrower.il" />
47
</ItemGroup>

src/tests/baseservices/compilerservices/modulector/moduleCctor.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="moduleCctor.il" />
47
</ItemGroup>

src/tests/baseservices/exceptions/simple/ILHelper.ilproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
33
<CLRTestPriority>1</CLRTestPriority>
4+
<OutputType>Library</OutputType>
45
</PropertyGroup>
56
<ItemGroup>
67
<Compile Include="ILHelper.il" />

src/tests/baseservices/exceptions/simple/VT.ilproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
22
<PropertyGroup>
33
<CLRTestPriority>1</CLRTestPriority>
4+
<OutputType>Library</OutputType>
45
</PropertyGroup>
56
<ItemGroup>
67
<Compile Include="VT.il" />

src/tests/baseservices/typeequivalence/impl/PunningLib.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="PunningLib.il" />
47
<ProjectReference Include="TypeImpl.csproj" />

src/tests/baseservices/typeequivalence/signatures/basetestclassesil.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="basetestclassesil.il" />
47
</ItemGroup>

src/tests/baseservices/typeequivalence/signatures/testclassesil.ilproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.IL">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
</PropertyGroup>
25
<ItemGroup>
36
<Compile Include="testclassesil.il" />
47
</ItemGroup>

0 commit comments

Comments
 (0)