Skip to content

Commit

Permalink
[Build] Target net6.0-windows7.0 temporarily and use official packages
Browse files Browse the repository at this point in the history
Some Stride packages still depend on Windows (see stride3d#1908).
Some Stride packages are not built properly locally.
  • Loading branch information
Kryptos-FR committed Oct 15, 2023
1 parent b3d4989 commit fa5ca3a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 26 deletions.
7 changes: 6 additions & 1 deletion sources/xplat-editor/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<Project>
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AvaloniaVersion>11.0.4</AvaloniaVersion>
</PropertyGroup>

<PropertyGroup>
<AvaloniaVersion>11.0.4</AvaloniaVersion>
<TargetFramework>net6.0-windows7.0</TargetFramework>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Stride.Core.Assets.Quantum" Version="4.1.0.1" />
<PackageReference Include="Stride.Core.Assets.Quantum" Version="4.1.0.1948" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="Stride.Core.Design" Version="4.1.0.1" />
<PackageReference Include="Stride.Core.Design" Version="4.1.0.1948" />

<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType Condition="'$(Configuration)' == 'Debug'">Exe</OutputType>
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>


<ItemGroup>
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
Expand Down

0 comments on commit fa5ca3a

Please sign in to comment.