Skip to content

Commit

Permalink
use commands that work with older version of sdk
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant committed Oct 29, 2024
1 parent cfedf56 commit c457bd4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions samples/calculator/CalculatorHost/CalculatorHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<InvariantGlobalization>true</InvariantGlobalization>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
<WasmSingleFileBundle>true</WasmSingleFileBundle>
<WasmBuildNative>true</WasmBuildNative>
<SelfContained>true</SelfContained>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/WasmComponent.Sdk/WasmComponent.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<None Include="../../Readme.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<None Include="ImportInDev.proj" />
</ItemGroup>

<Target Name="BuildOrDownloadNativeTooling" BeforeTargets="Build" DependsOnTargets="BuildNativeTooling; DownloadNativeTooling;">
</Target>

Expand Down
4 changes: 4 additions & 0 deletions src/WitBindgen/WitBindgen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
<WriteLinesToFile File="$(CurrentWkgVersion)" Lines="$(PrebuildWkgVersion)" Overwrite="true" WriteOnlyWhenDifferent="true" />
</Target>

<ItemGroup>
<None Include="ImportInDev.proj" />
</ItemGroup>

<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
<ItemGroup>
<_PackageFiles Include="build\**" BuildAction="Content" PackagePath="build" />
Expand Down
4 changes: 2 additions & 2 deletions test/E2ETest/PackageTest/PackageTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<RemoveDir Directories="$(NugetPackageRoot)\bytecodealliance.componentize.dotnet.witbindgen\$(PackageVersion)" />
<RemoveDir Directories="..\testapps\E2EProducer\obj" />
<RemoveDir Directories="..\testapps\E2EConsumer\obj" />
<Exec Command="dotnet publish /bl" WorkingDirectory="..\testapps\E2EProducer" />
<Exec Command="dotnet publish /bl" WorkingDirectory="..\testapps\E2EConsumer" />
<Exec Command="dotnet restore --no-cache" WorkingDirectory="..\testapps\E2EConsumer" />
<Exec Command="dotnet build --no-restore /bl" WorkingDirectory="..\testapps\E2EConsumer" />
</Target>

<Target Name="PackPackagesForE2ETest">
Expand Down
2 changes: 1 addition & 1 deletion test/E2ETest/testapps/E2EConsumer/E2EConsumer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<!-- After build, create the composed component so it can be executed in the test -->
<Target Name="ComposeWasmComponent" AfterTargets="LinkNativeLlvm">
<Target Name="ComposeWasmComponent" AfterTargets="AfterBuild">
<PropertyGroup>
<DependencyComponent>../E2EProducer/bin/$(Configuration)/$(TargetFramework)/wasi-wasm/native/e2eproducer.wasm</DependencyComponent>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ItemGroup>

<!-- After build, create the composed component so it can be executed in the test -->
<Target Name="ComposeWasmComponent" AfterTargets="LinkNativeLlvm">
<Target Name="ComposeWasmComponent" AfterTargets="AfterBuild">
<PropertyGroup>
<DependencyComponent>../SimpleProducer/bin/$(Configuration)/$(TargetFramework)/wasi-wasm/native/simpleproducer.wasm</DependencyComponent>
</PropertyGroup>
Expand Down

0 comments on commit c457bd4

Please sign in to comment.