Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ obj/
build/
*.nupkg
.vs/
.idea/
Files.wxs
*.wixobj
*.wixpdb
Expand Down
4 changes: 4 additions & 0 deletions src/SharpWebview/Content/HostedContent.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if NET7_0_OR_GREATER

using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.StaticFiles;
Expand Down Expand Up @@ -56,3 +58,5 @@ public string ToWebviewUrl()
}
}
}

#endif
7 changes: 4 additions & 3 deletions src/SharpWebview/SharpWebview.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks Condition="'$(PublishAot)' == 'true'">net7.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SharpWebview</AssemblyName>
<Authors>Gerrit 'Geaz' Gazic</Authors>
Expand All @@ -11,6 +12,7 @@
<PackageVersion>0.12.1</PackageVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/webview/webview_csharp</PackageProjectUrl>
<NoWarn>CS1591</NoWarn> <!-- mute missing documentation warnings -->
</PropertyGroup>

<ItemGroup>
Expand All @@ -37,8 +39,7 @@
</ItemGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<FrameworkReference Include="Microsoft.AspNetCore.App" Condition="'$(TargetFramework)' != 'netstandard2.1'" />
</ItemGroup>

</Project>