Skip to content

Commit

Permalink
Merge pull request #4 from dorssel/dotnet-5
Browse files Browse the repository at this point in the history
.NET 5
  • Loading branch information
dorssel authored Nov 11, 2020
2 parents 1f477c3 + ec2bb2c commit 77c3c6a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core
name: Build

on:
push:
Expand All @@ -15,10 +15,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# usbipd-win [![.NET Core](https://github.com/dorssel/usbipd-win/workflows/.NET%20Core/badge.svg?branch=master)](https://github.com/dorssel/usbipd-win/actions?query=workflow%3A%22.NET+Core%22+branch%3Amaster) [![CodeQL](https://github.com/dorssel/usbipd-win/workflows/CodeQL/badge.svg?branch=master)](https://github.com/dorssel/usbipd-win/actions?query=workflow%3ACodeQL)
# usbipd-win [![Build](https://github.com/dorssel/usbipd-win/workflows/Build/badge.svg?branch=master)](https://github.com/dorssel/usbipd-win/actions?query=workflow%3ABuild+branch%3Amaster) [![CodeQL](https://github.com/dorssel/usbipd-win/workflows/CodeQL/badge.svg?branch=master)](https://github.com/dorssel/usbipd-win/actions?query=workflow%3ACodeQL)

Windows software for hosting locally connected USB devices to other machines, including Hyper-V guests.

Expand Down
3 changes: 1 addition & 2 deletions UsbIpServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -56,7 +55,7 @@ static int Main(string[] args)
{
var app = new CommandLineApplication()
{
Name = Path.GetFileName(Process.GetCurrentProcess().MainModule.FileName),
Name = Path.ChangeExtension(Path.GetFileName(Assembly.GetExecutingAssembly().Location), "exe"),
};
app.VersionOption("-v|--version", GitVersionInformation.FullSemVer, GitVersionInformation.InformationalVersion);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Platform>x64</Platform>
<PublishDir>bin\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
Expand Down
13 changes: 7 additions & 6 deletions UsbIpServer/UsbIpServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Project Sdk="Microsoft.NET.Sdk.Worker">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>

<!-- supported (used by: dotnet restore) -->
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net5.0-windows</TargetFrameworks>
<Platforms>x64</Platforms>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<ApplicationManifest>app.manifest</ApplicationManifest>

<!-- defaults (used by: dotnet build) -->
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0-windows</TargetFramework>
<Platform>x64</Platform>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

<SelfContained>false</SelfContained>

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand All @@ -41,7 +42,7 @@
<Copyright>Copyright (C) $([System.DateTime]::UtcNow.ToString("yyyy")) $(Company)</Copyright>

<PublishProfile>Properties\PublishProfiles\InputForInstaller.pubxml</PublishProfile>
</PropertyGroup>
</PropertyGroup>

<ItemGroup>
<Content Include="..\COPYING.md" Link="COPYING.md" CopyToOutputDirectory="PreserveNewest" />
Expand All @@ -57,7 +58,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="3.1.9" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.0" />
</ItemGroup>

</Project>

0 comments on commit 77c3c6a

Please sign in to comment.