70 lines
3.2 KiB
XML
70 lines
3.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<ApplicationIcon>LANCommanderDark.ico</ApplicationIcon>
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Update="wwwroot\**">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="ByteSize" Version="2.1.2" />
|
|
<PackageReference Include="CommandLineParser" Version="2.9.1" />
|
|
<PackageReference Include="Emzi0767.NtfsDataStreams" Version="1.0.0" />
|
|
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
|
|
<PackageReference Include="NLog" Version="5.3.2" />
|
|
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.11" />
|
|
<PackageReference Include="Photino.Blazor" Version="3.0.11" />
|
|
<PackageReference Include="Photino.NET" Version="3.0.14" />
|
|
<PackageReference Include="rix0rrr.BeaconLib" Version="1.0.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\LANCommander.Launcher.Data\LANCommander.Launcher.Data.csproj" />
|
|
<ProjectReference Include="..\LANCommander.Launcher.Models\LANCommander.Launcher.Models.csproj" />
|
|
<ProjectReference Include="..\LANCommander.Launcher.Services\LANCommander.Launcher.Services.csproj" />
|
|
<ProjectReference Include="..\LANCommander.SDK\LANCommander.SDK.csproj" />
|
|
<ProjectReference Include="..\LANCommander.UI\LANCommander.UI.csproj" />
|
|
<ProjectReference Include="..\Photino.Blazor.CustomWindow\Photino.Blazor.CustomWindow\Photino.Blazor.CustomWindow.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CompileGlobalSass" BeforeTargets="Compile">
|
|
<Message Text="Compiling global SCSS files" Importance="high" />
|
|
<Exec Command="npm run sass -- Styles:wwwroot/css" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<ComponentScssFiles Include="**/*/*.scss" Exclude="node_modules/**;wwwroot/**;Styles/**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="webpack.config.js" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="webpack.config.js" />
|
|
<Content Include="index.js" />
|
|
<Content Include="LANCommander.ico">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="LANCommanderDark.ico" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="LANCommanderDark.ico">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
|
<Exec Command="Copy $(ProjectDir)..\LANCommander.PowerShell\bin\$(ConfigurationName)\LANCommander.PowerShell.dll $(TargetDir)LANCommander.PowerShell.dll
Copy $(ProjectDir)..\LANCommander.PowerShell\bin\$(ConfigurationName)\LANCommander.PowerShell.psd1 $(TargetDir)LANCommander.PowerShell.psd1
PowerShell -Command "(Get-Content '$(TargetDir)LANCommander.PowerShell.psd1') -replace 'YamlDotNet.dll', '..\..\YamlDotNet.dll' | Out-File '$(TargetDir)LANCommander.PowerShell.psd1'"" />
|
|
</Target>
|
|
</Project>
|