Skip to content

Commit

Permalink
Merge pull request #161 from icnocop/stylecop
Browse files Browse the repository at this point in the history
Updated C# projects to CPS/SDK-style format
  • Loading branch information
dblock authored Jan 16, 2024
2 parents f3a60e1 + 9bea2c0 commit b73dccb
Show file tree
Hide file tree
Showing 475 changed files with 586 additions and 50,007 deletions.
72 changes: 71 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,80 @@ jobs:
# The windows-2016 virtual environment has an older version, Microsoft Visual C++ 2010 Runtime 10.0.30319.
run: choco install vcredist2010 --version=10.0.40219.32503

- name: Install .NET 6 SDK
run: |
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
.\dotnet-install.ps1 -Version 6.0.413 -Architecture "x64" -InstallDir "C:\Program Files\dotnet" -NoPath -Verbose
- name: dotnet version and info
shell: cmd
run: |
"C:\Program Files\dotnet\dotnet.exe" --version
"C:\Program Files\dotnet\dotnet.exe" --info
- name: Configure Windows Error Reporting
shell: cmd
run: |
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "${{ github.workspace }}\CrashDumps" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 2 /f
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "${{ github.workspace }}\CrashDumps" /f
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 2 /f
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /t:all /m /p:Configuration=${{ matrix.Configuration }} .\dni.proj


- name: Dump environment variables
if: always()
shell: cmd
run: set

- name: Publish Failed Test Results Report
if: github.event_name != 'pull_request'
uses: dorny/test-reporter@v1
with:
name: Tests
path: TestResults/*.trx
reporter: dotnet-trx
list-suites: 'failed'
list-tests: 'failed'
max-annotations: 50

- name: Export Windows Event Logs
if: failure()
shell: cmd
run: |
wevtutil epl Application Application.evtx
wevtutil epl Security Security.evtx
wevtutil epl System System.evtx
- name: Upload Test Result Files
if: always()
uses: actions/[email protected]
with:
name: TestResults-${{ matrix.Configuration }}
path: |
.\**\TestResults\**\*
.\InstallerEditor\**\*.png
.\*.evtx
.\CrashDumps\**\*
# Upload the temp files separately.
# Otherwise the following error occurs:
# The rootDirectory: "D:\a\dotnetinstaller\dotnetinstaller" is not a parent directory of the file: "C:\Users\runneradmin\AppData\Local\Temp\33fcd148-d0c7-46cd-8333-9b21a22d2d2c.xml"
- name: Upload Temp File
if: failure()
uses: actions/[email protected]
with:
name: TempLogs-${{ matrix.Configuration }}
path: |
C:\Users\runneradmin\AppData\Local\Temp\*.exe
C:\Users\runneradmin\AppData\Local\Temp\*.log
C:\Users\runneradmin\AppData\Local\Temp\*.txt
C:\Users\runneradmin\AppData\Local\Temp\*.xml
- name: Upload Build Artifacts
uses: actions/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ StyleCop.Cache
.vs
packages
/temp
/UpgradeLog.htm
launchSettings.json
/TestResults
4 changes: 2 additions & 2 deletions Documentation/Dni.shfbproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<PresentationStyle>Prototype</PresentationStyle>
<HelpFileVersion>1.0.0.0</HelpFileVersion>
<DocumentationSources>
<DocumentationSource sourceFile="..\InstallerLib\bin\$(Configuration)\InstallerLib.dll" xmlns="" />
<DocumentationSource sourceFile="..\InstallerLib\bin\$(Configuration)\InstallerLib.xml" xmlns="" />
<DocumentationSource sourceFile="..\InstallerLib\bin\$(Configuration)\net40\InstallerLib.dll" xmlns="" />
<DocumentationSource sourceFile="..\InstallerLib\bin\$(Configuration)\net40\InstallerLib.xml" xmlns="" />
</DocumentationSources>
<KeepLogFile>False</KeepLogFile>
<CopyrightText>$(Copyright)</CopyrightText>
Expand Down
80 changes: 5 additions & 75 deletions InstallerConfig/InstallerConfig.csproj
Original file line number Diff line number Diff line change
@@ -1,87 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6E0789A6-234C-4B1C-AEB7-8C51BD754458}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InstallerConfig</RootNamespace>
<AssemblyName>InstallerConfig</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<ApplicationManifest>InstallerConfig.exe.manifest</ApplicationManifest>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Version\GlobalAssemblyInfo.cs">
<Link>Properties\GlobalAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\InstallerLib\InstallerLib.csproj">
<Project>{E19C2177-78F8-4C52-81FE-F49E157D647F}</Project>
<Name>InstallerLib</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="InstallerConfig.exe.manifest" />
<ProjectReference Include="..\InstallerLib\InstallerLib.csproj" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
5 changes: 0 additions & 5 deletions InstallerConfig/Program.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Runtime.InteropServices;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using InstallerLib;
using CommandLine;
using System.Reflection;
Expand Down
1 change: 0 additions & 1 deletion InstallerConfig/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("InstallerConfig")]
Expand Down
1 change: 0 additions & 1 deletion InstallerDocLib/ConceptualTopic.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;
Expand Down
2 changes: 0 additions & 2 deletions InstallerDocLib/DocAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.ComponentModel;
using InstallerLib;
Expand Down
1 change: 0 additions & 1 deletion InstallerDocLib/DocAttributeCollection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace InstallerDocLib
Expand Down
3 changes: 0 additions & 3 deletions InstallerDocLib/DocLibGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using InstallerLib;
using System.ComponentModel;
using System.Xml;
using System.IO;

Expand Down
2 changes: 0 additions & 2 deletions InstallerDocLib/InstallerDocLib.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using CommandLine;
using System.Reflection;
using System.IO;
Expand Down
82 changes: 4 additions & 78 deletions InstallerDocLib/InstallerDocLib.csproj
Original file line number Diff line number Diff line change
@@ -1,90 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{ADBA9E1B-677C-4399-823A-B8DFF471ECC3}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InstallerDocLib</RootNamespace>
<AssemblyName>InstallerDocLib</AssemblyName>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<ApplicationManifest>InstallerDocLib.exe.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Version\GlobalAssemblyInfo.cs">
<Link>Properties\GlobalAssemblyInfo.cs</Link>
</Compile>
<Compile Include="ConceptualTopic.cs" />
<Compile Include="DocAttribute.cs" />
<Compile Include="DocAttributeCollection.cs" />
<Compile Include="DocLibGenerator.cs" />
<Compile Include="InstallerDocLib.cs" />
<Compile Include="InstallerDocLibArguments.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\InstallerLib\InstallerLib.csproj">
<Project>{E19C2177-78F8-4C52-81FE-F49E157D647F}</Project>
<Name>InstallerLib</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="InstallerDocLib.exe.manifest" />
<ProjectReference Include="..\InstallerLib\InstallerLib.csproj" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
2 changes: 0 additions & 2 deletions InstallerDocLib/InstallerDocLibArguments.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using CommandLine;
using System.IO;

Expand Down
1 change: 0 additions & 1 deletion InstallerDocLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("InstallerDocLib")]
Expand Down
3 changes: 0 additions & 3 deletions InstallerEditor/About.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace InstallerEditor
Expand Down
2 changes: 0 additions & 2 deletions InstallerEditor/AppSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.IO;
using System.Collections.Specialized;
using SourceLibrary.IO.IsolatedStorage;
using System.IO.IsolatedStorage;
Expand Down
2 changes: 0 additions & 2 deletions InstallerEditor/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("dotNetInstaller Editor")]
[assembly: AssemblyDescription("")]
Expand Down
2 changes: 0 additions & 2 deletions InstallerEditor/ComponentWizard2.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using InstallerLib;

Expand Down
5 changes: 0 additions & 5 deletions InstallerEditor/InstallerEditor.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using System;
using System.Windows.Forms;
using CommandLine;
using System.Runtime.InteropServices;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using InstallerLib;
using System.Reflection;

namespace InstallerEditor
Expand Down
Loading

0 comments on commit b73dccb

Please sign in to comment.