Skip to content

Commit

Permalink
Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Dec 30, 2023
1 parent f5870cd commit d0d0d65
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest] # ubuntu-latest, macos-latest
language: [ 'csharp' ]

steps:
Expand Down
2 changes: 1 addition & 1 deletion Protest-CacheGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private void Execute(SourceProductionContext context, Compilation compilation) {

builder.AppendLine("using System.Collections.Generic;");
builder.AppendLine("namespace Protest.Http;");
builder.AppendLine("public static class StaticCacheSerialization {");
builder.AppendLine("internal static class StaticCacheSerialization {");

builder.AppendLine(" public static Dictionary<string, byte[]> cache = new Dictionary<string, byte[]>() {");

Expand Down
2 changes: 1 addition & 1 deletion Protest/Http/Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Protest.Http;

#if !OS_WINDOWS
public static class StaticCacheSerialization {
internal static class StaticCacheSerialization {
public static Dictionary<string, byte[]> cache = new Dictionary<string, byte[]>() {};
}
#endif
Expand Down
157 changes: 90 additions & 67 deletions Protest/Protest.csproj
Original file line number Diff line number Diff line change
@@ -1,70 +1,93 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Product>Pro-test</Product>
<AssemblyName>pro-test</AssemblyName>
<Company>veniware</Company>
<Authors>andreas venizelou</Authors>
<Description>A management base for System Admins</Description>
<ApplicationIcon>pro-test.ico</ApplicationIcon>
<PackageIcon>pro-test.png</PackageIcon>
<ProjectGuid>{72F5BCA3-7752-45E8-8027-2060EBBDA456}</ProjectGuid>

<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>11</LangVersion>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>

<ServerGarbageCollection>true</ServerGarbageCollection>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<!--<Deterministic>false</Deterministic>-->
<!--<Version>5.0.0</Version>-->
<!--<AssemblyVersion>5.0.*</AssemblyVersion>-->

<Deterministic>false</Deterministic>
<VersionSuffix>5.0.$([System.DateTime]::UtcNow.ToString(yyMM))0.$([System.DateTime]::UtcNow.ToString(ddhh))</VersionSuffix>
<AssemblyVersion>$(VersionSuffix)</AssemblyVersion>
<Version>$(VersionSuffix)</Version>

<NoWarn>IDE0090</NoWarn>

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringBuild>True</RunAnalyzersDuringBuild>

<SelfContained>false</SelfContained>

<PublisherName>Pro-test</PublisherName>
<PublishAot>false</PublishAot>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishSingleFile>true</PublishSingleFile>
<Copyright>2023 veniware. Released into the public domain.</Copyright>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Lextm.SharpSnmpLib" Version="12.5.2" />
<PackageReference Include="SSH.NET" Version="2023.0.0" />
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
<PackageReference Include="System.Management" Version="8.0.0" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<ProjectReference Include="..\Protest-CacheGenerator\Protest-CacheGenerator.csproj" OutputItemType="Analyzer" />
</ItemGroup>

<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<DefineConstants>OS_WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<DefineConstants>OS_MAC</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<DefineConstants>OS_LINUX</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<Product>Pro-test</Product>
<AssemblyName>pro-test</AssemblyName>
<Company>veniware</Company>
<Authors>andreas venizelou</Authors>
<Description>A management base for System Admins</Description>
<ApplicationIcon>pro-test.ico</ApplicationIcon>
<PackageIcon>pro-test.png</PackageIcon>
<ProjectGuid>{72F5BCA3-7752-45E8-8027-2060EBBDA456}</ProjectGuid>

<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>11</LangVersion>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>

<ServerGarbageCollection>true</ServerGarbageCollection>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<!--<Deterministic>false</Deterministic>-->
<!--<Version>5.0.0</Version>-->
<!--<AssemblyVersion>5.0.*</AssemblyVersion>-->

<Deterministic>false</Deterministic>
<VersionSuffix>5.0.$([System.DateTime]::UtcNow.ToString(yyMM))0.$([System.DateTime]::UtcNow.ToString(ddhh))</VersionSuffix>
<AssemblyVersion>$(VersionSuffix)</AssemblyVersion>
<Version>$(VersionSuffix)</Version>

<NoWarn>IDE0090</NoWarn>

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringBuild>True</RunAnalyzersDuringBuild>

<SelfContained>false</SelfContained>

<PublisherName>Pro-test</PublisherName>
<PublishAot>false</PublishAot>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishSingleFile>true</PublishSingleFile>
<Copyright>2023 veniware. Released into the public domain.</Copyright>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Lextm.SharpSnmpLib" Version="12.5.2" />
<PackageReference Include="SSH.NET" Version="2023.0.0" />
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
<PackageReference Include="System.Management" Version="8.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<ProjectReference Include="..\Protest-CacheGenerator\Protest-CacheGenerator.csproj" OutputItemType="Analyzer" />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-arm64'">
<ProjectReference Include="..\Protest-CacheGenerator\Protest-CacheGenerator.csproj" OutputItemType="Analyzer" />
</ItemGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<DefineConstants>OS_WINDOWS</DefineConstants>
<DefineConstants>ARCH_X64</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-arm64'">
<DefineConstants>OS_WINDOWS</DefineConstants>
<DefineConstants>ARCH_ARM64</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
<DefineConstants>OS_MAC</DefineConstants>
<DefineConstants>ARCH_X64</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'osx-arm64'">
<DefineConstants>OS_MAC</DefineConstants>
<DefineConstants>ARCH_ARM64</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
<DefineConstants>OS_LINUX</DefineConstants>
<DefineConstants>ARCH_X64</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'linux-arm64'">
<DefineConstants>OS_LINUX</DefineConstants>
<DefineConstants>ARCH_ARM64</DefineConstants>
</PropertyGroup>

</Project>

0 comments on commit d0d0d65

Please sign in to comment.