|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | | - <OutputType>WinExe</OutputType> |
| 3 | + <OutputType Condition="'$(BuildingForBrowser)' == 'true'">Library</OutputType> |
| 4 | + <OutputType Condition="'$(BuildingForBrowser)' != 'true'">WinExe</OutputType> |
4 | 5 | <TargetFramework>net10.0</TargetFramework> |
5 | 6 | <LangVersion>preview</LangVersion> |
6 | 7 | <Nullable>enable</Nullable> |
7 | 8 | <BuiltInComInteropSupport>true</BuiltInComInteropSupport> |
8 | 9 | <ApplicationManifest>app.manifest</ApplicationManifest> |
9 | 10 | <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> |
10 | | - <StartupObject>Gui.Program</StartupObject> |
| 11 | + <StartupObject Condition="'$(BuildingForBrowser)' != 'true'">Gui.Program</StartupObject> |
11 | 12 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
12 | 13 | <PackageReadmeFile>README.md</PackageReadmeFile> |
13 | 14 | <RepositoryUrl>https://github.com/OpenLoco/OpenLocoObjectEditor</RepositoryUrl> |
|
19 | 20 | <Version>1.2.3</Version> |
20 | 21 | <Authors>LeftofZen</Authors> |
21 | 22 | <ProduceReferenceAssembly>False</ProduceReferenceAssembly> |
22 | | - <ApplicationIcon>Assets\loco_icon.ico</ApplicationIcon> |
| 23 | + <ApplicationIcon Condition="'$(BuildingForBrowser)' != 'true'">Assets\loco_icon.ico</ApplicationIcon> |
23 | 24 | </PropertyGroup> |
24 | 25 |
|
25 | 26 | <ItemGroup> |
|
59 | 60 | <PackageReference Include="NAudio" Version="2.3.0" /> |
60 | 61 | <PackageReference Include="NuGet.Versioning" Version="7.3.0" /> |
61 | 62 | <PackageReference Include="PanAndZoom" Version="11.3.9.1" /> |
| 63 | + <PackageReference Include="ReactiveUI.Avalonia" Version="11.4.12" /> |
62 | 64 | <PackageReference Include="ReactiveUI.Fody" Version="19.5.41" /> |
63 | 65 | <PackageReference Include="ReactiveUI.Validation" Version="7.0.5" /> |
64 | 66 | <PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.7" /> |
|
67 | 69 | <ItemGroup> |
68 | 70 | <ProjectReference Include="..\Common\Common.csproj" /> |
69 | 71 | <ProjectReference Include="..\Definitions\Definitions.csproj" /> |
70 | | - <ProjectReference Include="..\GuiUpdater\GuiUpdater.csproj" /> |
| 72 | + <ProjectReference Condition="'$(BuildingForBrowser)' != 'true'" Include="..\GuiUpdater\GuiUpdater.csproj" /> |
71 | 73 | <ProjectReference Include="..\Index\Index.csproj" /> |
72 | 74 | </ItemGroup> |
73 | 75 |
|
|
0 commit comments