Files
AdamuSw/src/Web/Shared/MUnique.OpenMU.Web.Shared.csproj

99 lines
4.4 KiB
XML

<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable;CS4014;VSTHRD110;VSTHRD100</WarningsAsErrors>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<!-- Set base path for static web assets to avoid conflicts when referenced by other web apps.
Required for .NET 10+ where WebApp-to-WebApp references are unsupported.
Also resolves asset path conflicts in .NET 9 when AdminPanel and Map both have wwwroot/css/site.css.
Note: Standalone Program.cs in this project won't serve assets correctly.
Use Startup or AdminPanel.Host projects to run the admin panel. -->
<StaticWebAssetBasePath>_content/$(MSBuildProjectName)</StaticWebAssetBasePath>
</PropertyGroup>
<ItemGroup>
<Compile Remove="wwwroot\js\**" />
<Content Remove="wwwroot\js\**" />
<EmbeddedResource Remove="wwwroot\js\**" />
<None Remove="wwwroot\js\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="compilerconfig.json" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\..\..\bin\Debug\</OutputPath>
<DocumentationFile>..\..\..\bin\Debug\MUnique.OpenMU.Web.Shared.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\..\..\bin\Release\</OutputPath>
<DocumentationFile>..\..\..\bin\Release\MUnique.OpenMU.Web.Shared.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<None Remove="Components\CultureSelector.razor.js" />
</ItemGroup>
<ItemGroup>
<None Include="compilerconfig.json" />
<None Include="wwwroot\css\open-iconic\FONT-LICENSE" />
<None Include="wwwroot\css\open-iconic\font\css\open-iconic-bootstrap.min.css" />
<None Include="wwwroot\css\open-iconic\font\fonts\open-iconic.eot" />
<None Include="wwwroot\css\open-iconic\font\fonts\open-iconic.otf" />
<None Include="wwwroot\css\open-iconic\font\fonts\open-iconic.svg" />
<None Include="wwwroot\css\open-iconic\font\fonts\open-iconic.ttf" />
<None Include="wwwroot\css\open-iconic\font\fonts\open-iconic.woff" />
<None Include="wwwroot\css\open-iconic\ICON-LICENSE" />
<None Include="wwwroot\css\open-iconic\README.md" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BCrypt.Net-Next" />
<PackageReference Include="BlazorInputFile" />
<PackageReference Include="Mapster" />
<PackageReference Include="Microsoft.AspNetCore.Components.QuickGrid" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" />
<PackageReference Include="Nito.AsyncEx" />
<PackageReference Include="SixLabors.ImageSharp" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(ci)'!='true' and '$(OS)'=='Windows_NT'">
<PackageReference Include="BuildWebCompiler2022" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\GameLogic\MUnique.OpenMU.GameLogic.csproj" />
<ProjectReference Include="..\..\Persistence\MUnique.OpenMU.Persistence.csproj" />
<ProjectReference Include="..\ItemEditor\MUnique.OpenMU.Web.ItemEditor.csproj" />
</ItemGroup>
<Target Name="CompileSass" BeforeTargets="Build" Condition="'$(ci)'!='true' and '$(OS)'!='Windows_NT'">
<Exec Command="sass --version" IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="SassExists"/>
</Exec>
<Error Condition="'$(SassExists)'!='0'" Text="Dart Sass not installed. Install with: npm install -g sass."/>
<Exec Command="sass --quiet --style=expanded --no-source-map Styles/Site.scss wwwroot/css/shared.css" />
<Exec Command="sass --quiet --style=compressed --no-source-map Styles/Site.scss wwwroot/css/shared.min.css" />
</Target>
</Project>