Skip to content

Commit

Permalink
upgrade: csproj structure (lduchosal#184)
Browse files Browse the repository at this point in the history
* upgrade: csproj structure
* fix: CI does not work with .net6 yet
* fix: CI should build and test
* fix: CI should compile in net5.0
* fix: CI script to build new projects
* fix: .net CI
* fix: snk path
* fix: appveyor build with new project structure
  • Loading branch information
lduchosal authored Nov 19, 2021
1 parent 8abc2b7 commit f537687
Show file tree
Hide file tree
Showing 66 changed files with 7,961 additions and 8,458 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Pack
run: dotnet pack -c release ./src/System.Net.IPNetwork
- name: Build
run: dotnet build --no-restore -c release ./src/System.Net.IPNetwork.ConsoleApplication.NetCore --no-restore
run: dotnet build --no-restore -c release ./src/ConsoleApplication --no-restore
- name: Test
run: dotnet test --verbosity normal ./src/System.Net.IPNetwork.TestProject.NetCore/System.Net.IPNetwork.TestProject.NetCore.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
run: dotnet test --verbosity normal ./src/ConsoleApplication/ConsoleApplication.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ script:
- cd src
- dotnet restore
- dotnet pack ./System.Net.IPNetwork
- dotnet test -f net5.0 ./System.Net.IPNetwork.TestProject.NetCore/System.Net.IPNetwork.TestProject.NetCore.csproj
- dotnet test -f net5.0 ./TestProject/TestProject.csproj
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
- DOTNET_CLI_TELEMETRY_OPTOUT=1
9 changes: 4 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ before_build:

build_script:
- cmd: dotnet pack -c release ./src/System.Net.IPNetwork
- cmd: dotnet build -c release ./src/System.Net.IPNetwork.ConsoleApplication.NetFramework
- cmd: dotnet build -c release ./src/System.Net.IPNetwork.ConsoleApplication.NetCore
- cmd: dotnet build -c release ./src/ConsoleApplication

test_script:
- cmd: dotnet test ./src/System.Net.IPNetwork.TestProject.NetCore/System.Net.IPNetwork.TestProject.NetCore.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- vstest.console /logger:Appveyor c:\Projects\ipnetwork\src\System.Net.IPNetwork.TestProject.NetCore\bin\Debug\net5.0\System.Net.IPNetwork.TestProject.NetCore.dll
- csmacnz.Coveralls.exe --opencover -i C:\projects\ipnetwork\src\System.Net.IPNetwork.TestProject.NetCore\coverage.net5.0.opencover.xml --useRelativePaths
- cmd: dotnet test ./src/TestProject/TestProject.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- vstest.console /logger:Appveyor c:\Projects\ipnetwork\src\TestProject\bin\Debug\net5.0\TestProject.dll
- csmacnz.Coveralls.exe --opencover -i C:\projects\ipnetwork\src\TestProject\coverage.net5.0.opencover.xml --useRelativePaths

# 1. Regenerate AppVeyor Api Key
# https://www.nuget.org/account/apikeys
Expand Down
Binary file removed release/IPNetwork-1.2.1.zip
Binary file not shown.
Binary file removed release/IPNetwork-1.3.1.zip
Binary file not shown.
Binary file removed release/IPNetwork-1.3.2.zip
Binary file not shown.
Binary file removed release/IPNetwork-1.3.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.0.1.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.0.2.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.0.3.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.1.0.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.1.1.zip
Binary file not shown.
Binary file removed release/IPNetwork-2.1.2.zip
Binary file not shown.
Binary file removed release/IPNetwork2.2.0.1.nupkg
Binary file not shown.
Binary file removed release/IPNetwork2.2.0.2.nupkg
Binary file not shown.
Binary file removed release/IPNetwork2.2.0.3.nupkg
Binary file not shown.
Binary file removed release/IPNetwork2.2.1.0.nupkg
Binary file not shown.
Binary file removed release/IPNetwork2.2.1.1.nupkg
Binary file not shown.
Binary file removed release/IPNetwork2.2.1.2.nupkg
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace System.Net.ConsoleApplication
namespace System.Net.ConsoleApplication
{
public enum ActionEnum {
Usage,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace System.Net.ConsoleApplication
namespace System.Net.ConsoleApplication
{
public class ArgParsed {
public int Arg;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace System.Net.ConsoleApplication
namespace System.Net.ConsoleApplication
{
public enum CidrParseEnum {
Default,
Expand Down
19 changes: 19 additions & 0 deletions src/ConsoleApplication/ConsoleApplication.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net45;net46;net47;net48;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net5.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\System.Net.IPNetwork.snk</AssemblyOriginatorKeyFile>

</PropertyGroup>


<ItemGroup>
<ProjectReference Include="..\Gnu.Getopt\Gnu.Getopt.csproj" />
<ProjectReference Include="..\System.Net.IPNetwork\System.Net.IPNetwork.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit f537687

Please sign in to comment.