Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 9b4d450

Browse files
committed
Optimize release builds, add Upscaler nuget ref
1 parent d4574df commit 9b4d450

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

OnnxStack.UI/OnnxStack.UI.csproj

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
<Configurations>Debug;Release;Debug-DirectML;Debug-Cuda;Debug-TensorRT;Release-DirectML;Release-Cuda;Release-TensorRT</Configurations>
1212
</PropertyGroup>
1313

14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-DirectML|AnyCPU'">
15+
<Optimize>True</Optimize>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Cuda|AnyCPU'">
19+
<Optimize>True</Optimize>
20+
</PropertyGroup>
21+
22+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-TensorRT|AnyCPU'">
23+
<Optimize>True</Optimize>
24+
</PropertyGroup>
25+
1426
<ItemGroup>
1527
<None Remove="appsettings.json" />
1628
<None Remove="Fonts\fa-brands-400.ttf" />
@@ -41,7 +53,8 @@
4153
</ItemGroup>
4254

4355
<ItemGroup>
44-
<PackageReference Include="OnnxStack.StableDiffusion" Version="0.12.0" Condition=" '$(Configuration)' == 'Release' OR '$(Configuration)' == 'Release-DirectML' OR '$(Configuration)' == 'Release-Cuda' OR '$(Configuration)' == 'Release-TensorRT'" />
56+
<PackageReference Include="OnnxStack.StableDiffusion" Version="0.13.0" Condition=" '$(Configuration)' == 'Release' OR '$(Configuration)' == 'Release-DirectML' OR '$(Configuration)' == 'Release-Cuda' OR '$(Configuration)' == 'Release-TensorRT'" />
57+
<PackageReference Include="OnnxStack.ImageUpscaler" Version="0.13.0" Condition=" '$(Configuration)' == 'Release' OR '$(Configuration)' == 'Release-DirectML' OR '$(Configuration)' == 'Release-Cuda' OR '$(Configuration)' == 'Release-TensorRT'" />
4558
<ProjectReference Include="..\OnnxStack.StableDiffusion\OnnxStack.StableDiffusion.csproj" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Debug-DirectML' OR '$(Configuration)' == 'Debug-Cuda' OR '$(Configuration)' == 'Debug-TensorRT'" />
4659
<ProjectReference Include="..\OnnxStack.ImageUpscaler\OnnxStack.ImageUpscaler.csproj" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Debug-DirectML' OR '$(Configuration)' == 'Debug-Cuda' OR '$(Configuration)' == 'Debug-TensorRT'" />
4760
</ItemGroup>

0 commit comments

Comments
 (0)