Skip to content

Instantly share code, notes, and snippets.

@noseratio
Created June 9, 2021 11:30
Show Gist options
  • Save noseratio/3dc5c101096e9a9a69e98b8e4b0a5662 to your computer and use it in GitHub Desktop.
Save noseratio/3dc5c101096e9a9a69e98b8e4b0a5662 to your computer and use it in GitHub Desktop.
Hybrid Console + WinForms + AspNetCore app
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<OutputType>Exe</OutputType>
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
<UseWinForms>true</UseWinForms>
<UsingMicrosoftNETSdkWeb>true</UsingMicrosoftNETSdkWeb>
<StartupObject>WebView2AppKeys.Program</StartupObject>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>1.0.0</Version>
<ApplicationIcon />
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" IsImplicitlyDefined="true" />
</ItemGroup>
<ItemGroup>
<None Remove="test.html" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.818.41" />
</ItemGroup>
<ItemGroup>
<Content Include="test.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment