Multitarget with .net6.0 and .netstandard2.0 (#318)

This commit is contained in:
Harry 2022-01-26 13:24:28 +01:00 committed by GitHub
parent bc5674ae06
commit 42ceb1c0d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 77 additions and 139 deletions

View file

@ -1,27 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>AtkSharp is a C# wrapper for the Atk library.</Description> <Description>AtkSharp is a C# wrapper for the Atk library.</Description>
<PackageTags>atk;atksharp;atk-sharp;wrapper</PackageTags> <PackageTags>atk;atksharp;atk-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name>
</ProjectReference>
</ItemGroup>
</Project> </Project>

View file

@ -1,22 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>CairoSharp is a C# wrapper for the Cairo library.</Description> <Description>CairoSharp is a C# wrapper for the Cairo library.</Description>
<PackageTags>cairo;cairosharp;cairo-sharp;wrapper</PackageTags> <PackageTags>cairo;cairosharp;cairo-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<OutputPath>..\..\..\BuildOutput\$(Configuration)</OutputPath>
</PropertyGroup>
</Project>

View file

@ -1,22 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GLibSharp is a C# wrapper for the GLib library.</Description> <Description>GLibSharp is a C# wrapper for the GLib library.</Description>
<PackageTags>glib;glibsharp;glib-sharp;wrapper</PackageTags> <PackageTags>glib;glibsharp;glib-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -1,19 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GdkSharp is a C# wrapper for the Gdk library.</Description> <Description>GdkSharp is a C# wrapper for the Gdk library.</Description>
<PackageTags>gdk;gdksharp;gdk-sharp;wrapper</PackageTags> <PackageTags>gdk;gdksharp;gdk-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <ItemGroup>
</PropertyGroup> <Compile Include="..\Shared\*.cs">
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<OutputPath>..\..\..\BuildOutput\Release</OutputPath> </Compile>
</PropertyGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj"> <ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name> <Name>GLibSharp</Name>
@ -28,9 +25,5 @@
<Name>PangoSharp</Name> <Name>PangoSharp</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>
</Project> </Project>

View file

@ -1,27 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GioSharp is a C# wrapper for the Gio library.</Description> <Description>GioSharp is a C# wrapper for the Gio library.</Description>
<PackageTags>gio;giosharp;gio-sharp;wrapper</PackageTags> <PackageTags>gio;giosharp;gio-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name>
</ProjectReference>
</ItemGroup>
</Project> </Project>

View file

@ -1,23 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageIconUrl>https://raw.githubusercontent.com/GtkSharp/GtkSharp/develop/Source/Libs/GtkSharp/Icon.png</PackageIconUrl> <PackageIconUrl>https://raw.githubusercontent.com/GtkSharp/GtkSharp/develop/Source/Libs/GtkSharp/Icon.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GtkSharp is a C# wrapper for the Gtk library.</Description> <Description>GtkSharp is a C# wrapper for the Gtk library.</Description>
<PackageTags>gtk;gtksharp;gtk-sharp;wrapper</PackageTags> <PackageTags>gtk;gtksharp;gtk-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <ItemGroup>
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <Compile Include="..\Shared\*.cs">
</PropertyGroup> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> </ItemGroup>
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj"> <ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
@ -40,12 +33,6 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="GtkSharp.targets" PackagePath="build\GtkSharp.targets" /> <Content Include="GtkSharp.targets" PackagePath="build\GtkSharp.targets" />
</ItemGroup> </ItemGroup>

View file

@ -1,25 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GtkSourceSharp is a C# wrapper for the GtkSourceView library.</Description> <Description>GtkSourceSharp is a C# wrapper for the GtkSourceView library.</Description>
<PackageTags>sourceview;sourceviewsharp;sourceview-sharp;wrapper</PackageTags> <PackageTags>sourceview;sourceviewsharp;sourceview-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GtkSharp\GtkSharp.csproj" /> <ProjectReference Include="..\GtkSharp\GtkSharp.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -1,19 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>PangoSharp is a C# wrapper for the Pango library.</Description> <Description>PangoSharp is a C# wrapper for the Pango library.</Description>
<PackageTags>pango;pangosharp;pango-sharp;wrapper</PackageTags> <PackageTags>pango;pangosharp;pango-sharp;wrapper</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath> <ItemGroup>
</PropertyGroup> <Compile Include="..\Shared\*.cs">
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<OutputPath>..\..\..\BuildOutput\Release</OutputPath> </Compile>
</PropertyGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj"> <ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name> <Name>GLibSharp</Name>
@ -22,9 +19,5 @@
<Name>CairoSharp</Name> <Name>CairoSharp</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>
</Project> </Project>

View file

@ -1,26 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>GtkWebkitSharp is a C# wrapper for the Gtk-Webkit library.</Description> <Description>GtkWebkitSharp is a C# wrapper for the Gtk-Webkit library.</Description>
<PackageTags>webkitgtk;webkitgtksharp;webkit-sharp;wrapper</PackageTags> <PackageTags>webkitgtk;webkitgtksharp;webkit-sharp;wrapper</PackageTags>
<RootNamespace>GtkWebkitSharp</RootNamespace> <RootNamespace>GtkWebkitSharp</RootNamespace>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\..\BuildOutput\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs"> <Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\GtkSharp\GtkSharp.csproj" /> <ProjectReference Include="..\GtkSharp\GtkSharp.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>