File tree Expand file tree Collapse file tree 8 files changed +20
-12
lines changed
WasmComponentSdkTest/testapps/SimpleConsumer Expand file tree Collapse file tree 8 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 8
8
<PackageVersion Include =" runtime.$(NETCoreSdkPortableRuntimeIdentifier).Microsoft.DotNet.ILCompiler.LLVM" Version =" 10.0.0-alpha.1.24525.6" />
9
9
10
10
<!-- Tests -->
11
- <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 17.6.0 " />
12
- <PackageVersion Include =" xunit" Version =" 2.4 .2" />
13
- <PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.4.5 " />
11
+ <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 17.11.1 " />
12
+ <PackageVersion Include =" xunit" Version =" 2.9 .2" />
13
+ <PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.8.2 " />
14
14
</ItemGroup >
15
15
</Project >
Original file line number Diff line number Diff line change 8
8
9
9
<PropertyGroup >
10
10
<TargetFramework >net8.0</TargetFramework >
11
+ <RuntimeIdentifier >wasi-wasm</RuntimeIdentifier >
12
+ <IlcExportUnmanagedEntrypoints >true</IlcExportUnmanagedEntrypoints >
13
+ <PublishTrimmed >false</PublishTrimmed >
11
14
</PropertyGroup >
12
15
13
16
<ItemGroup >
Original file line number Diff line number Diff line change 12
12
<InvariantGlobalization >true</InvariantGlobalization >
13
13
<RuntimeIdentifier >wasi-wasm</RuntimeIdentifier >
14
14
<IlcExportUnmanagedEntrypoints >true</IlcExportUnmanagedEntrypoints >
15
+ <WasmSingleFileBundle >true</WasmSingleFileBundle >
16
+ <WasmBuildNative >true</WasmBuildNative >
17
+ <SelfContained >true</SelfContained >
15
18
</PropertyGroup >
16
19
17
20
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
-
2
+ < Import Project = " build\BytecodeAlliance.Componentize.DotNet.Wasm.SDK.props " />
3
3
<PropertyGroup >
4
4
<PackageId >BytecodeAlliance.Componentize.DotNet.Wasm.SDK</PackageId >
5
5
<Authors >Bytecode Alliance Developers</Authors >
40
40
<Target Name =" BuildOrDownloadNativeTooling" BeforeTargets =" Build" DependsOnTargets =" BuildNativeTooling; DownloadNativeTooling;" >
41
41
</Target >
42
42
43
+ <ItemGroup >
44
+ <PackageReference Include =" Microsoft.DotNet.ILCompiler.LLVM" PrivateAssets =" None" />
45
+ <PackageReference Condition =" $([MSBuild]::IsOSPlatform('Windows'))" Include =" runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM" PrivateAssets =" None" />
46
+ <PackageReference Condition =" $([MSBuild]::IsOSPlatform('Linux'))" Include =" runtime.linux-x64.Microsoft.DotNet.ILCompiler.LLVM" PrivateAssets =" None" />
47
+ </ItemGroup >
48
+
43
49
<Target Name =" BuildNativeTooling" Condition =" '$(BuildWasmToolsLocally)' == 'true'" >
44
50
<Exec Command =" cargo build --release" WorkingDirectory =" $(WasmToolsModuleRoot)" />
45
51
Original file line number Diff line number Diff line change 12
12
<WasmToolsExe Condition =" $([MSBuild]::IsOSPlatform('Windows'))" >$(WasmToolsExe).exe</WasmToolsExe >
13
13
</PropertyGroup >
14
14
15
- <ItemGroup >
16
- <PackageReference Include =" Microsoft.DotNet.ILCompiler.LLVM" PrivateAssets =" None" />
17
- <PackageReference Include =" runtime.$(NETCoreSdkPortableRuntimeIdentifier).Microsoft.DotNet.ILCompiler.LLVM" PrivateAssets =" None" />
18
- </ItemGroup >
19
15
</Project >
Original file line number Diff line number Diff line change 37
37
<RemoveDir Directories =" $(NugetPackageRoot)\bytecodealliance.componentize.dotnet.witbindgen\$(PackageVersion)" />
38
38
<RemoveDir Directories =" ..\testapps\E2EProducer\obj" />
39
39
<RemoveDir Directories =" ..\testapps\E2EConsumer\obj" />
40
- <Exec Command =" dotnet restore --no-cache " WorkingDirectory =" ..\testapps\E2EConsumer " />
41
- <Exec Command =" dotnet build --no-restore /bl" WorkingDirectory =" ..\testapps\E2EConsumer" />
40
+ <Exec Command =" dotnet publish /bl " WorkingDirectory =" ..\testapps\E2EProducer " />
41
+ <Exec Command =" dotnet publish /bl" WorkingDirectory =" ..\testapps\E2EConsumer" />
42
42
</Target >
43
43
44
44
<Target Name =" PackPackagesForE2ETest" >
Original file line number Diff line number Diff line change 28
28
</ItemGroup >
29
29
30
30
<!-- After build, create the composed component so it can be executed in the test -->
31
- <Target Name =" ComposeWasmComponent" AfterTargets =" AfterBuild " >
31
+ <Target Name =" ComposeWasmComponent" AfterTargets =" LinkNativeLlvm " >
32
32
<PropertyGroup >
33
33
<DependencyComponent >../E2EProducer/bin/$(Configuration)/$(TargetFramework)/wasi-wasm/native/e2eproducer.wasm</DependencyComponent >
34
34
</PropertyGroup >
Original file line number Diff line number Diff line change 26
26
</ItemGroup >
27
27
28
28
<!-- After build, create the composed component so it can be executed in the test -->
29
- <Target Name =" ComposeWasmComponent" AfterTargets =" AfterBuild " >
29
+ <Target Name =" ComposeWasmComponent" AfterTargets =" LinkNativeLlvm " >
30
30
<PropertyGroup >
31
31
<DependencyComponent >../SimpleProducer/bin/$(Configuration)/$(TargetFramework)/wasi-wasm/native/simpleproducer.wasm</DependencyComponent >
32
32
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments