File tree Expand file tree Collapse file tree 6 files changed +51
-8
lines changed
src/CodeUpdater/CodeUpdater Expand file tree Collapse file tree 6 files changed +51
-8
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >Exe</OutputType >
4
4
<TargetFramework >net8.0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
7
- <LangVersion >preview </LangVersion >
7
+ <LangVersion >latest </LangVersion >
8
8
<RunWorkingDirectory >$(MSBuildProjectDirectory)</RunWorkingDirectory >
9
+ <EnableNETAnalyzers >true</EnableNETAnalyzers >
10
+ <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
9
11
</PropertyGroup >
10
12
<ItemGroup >
11
13
<PackageReference Include =" Cake.Frosting" Version =" 4.0.0" />
14
+ <PackageReference Include =" NuGet.Packaging" Version =" 6.11.1" />
15
+ <PackageReference Include =" System.Formats.Asn1" Version =" 8.0.1" />
12
16
</ItemGroup >
17
+ <PropertyGroup >
18
+ <NuGetAudit >true</NuGetAudit >
19
+ <NuGetAuditMode >all</NuGetAuditMode >
20
+ <NuGetAuditLevel >low</NuGetAuditLevel >
21
+ </PropertyGroup >
13
22
</Project >
Original file line number Diff line number Diff line change 9
9
<LangVersion >latest</LangVersion >
10
10
<RootNamespace >ProgrammerAL.Tools.CodeUpdater</RootNamespace >
11
11
<AssemblyName >ProgrammerAL.Tools.CodeUpdater</AssemblyName >
12
+ <EnableNETAnalyzers >true</EnableNETAnalyzers >
13
+ <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
12
14
</PropertyGroup >
13
15
<PropertyGroup >
14
16
<Version >0.1.0</Version >
27
29
28
30
<ItemGroup >
29
31
<PackageReference Include =" CommandLineParser" Version =" 2.9.1" />
30
- <PackageReference Include =" ProgrammerAl.SourceGenerators.PublicInterfaceGenerator" Version =" 1.0.0.62" PrivateAssets =" All " />
32
+ <PackageReference Include =" ProgrammerAl.SourceGenerators.PublicInterfaceGenerator" Version =" 1.0.0.62" PrivateAssets =" all " />
31
33
<PackageReference Include =" Serilog.Sinks.Console" Version =" 6.0.0" />
32
34
<PackageReference Include =" Serilog.Sinks.File" Version =" 6.0.0" />
33
35
</ItemGroup >
36
38
<!-- Include the ReadMe in the nuget package-->
37
39
<None Include =" ../../../README.md" Pack =" true" PackagePath =" /" />
38
40
</ItemGroup >
41
+ <PropertyGroup >
42
+ <NuGetAudit >true</NuGetAudit >
43
+ <NuGetAuditMode >all</NuGetAuditMode >
44
+ <NuGetAuditLevel >low</NuGetAuditLevel >
45
+ </PropertyGroup >
39
46
</Project >
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public class UpdateOptions
80
80
public string ? LogLevel { get ; set ; } = "verbose" ;
81
81
82
82
public record NugetAuditOptions (
83
- [ property: Required ] bool NuGetAudit ,
83
+ [ property: Required ] bool NuGetAudit ,
84
84
[ property: Required ] string AuditMode ,
85
85
[ property: Required ] string AuditLevel ) ;
86
86
}
Original file line number Diff line number Diff line change 8
8
namespace ProgrammerAL . Tools . CodeUpdater ;
9
9
10
10
public record CSharpUpdateResult (
11
- string CsprojFile ,
12
- NugetUpdateResults NugetUpdates ,
13
- CsprojValueUpdateResultType LangVersionUpdate ,
11
+ string CsprojFile ,
12
+ NugetUpdateResults NugetUpdates ,
13
+ CsprojValueUpdateResultType LangVersionUpdate ,
14
14
CsprojValueUpdateResultType TargetFrameworkUpdate ,
15
15
DotnetFormatResult DotnetFormatUpdate ) ;
16
16
@@ -54,4 +54,4 @@ public enum DotnetFormatResultType
54
54
DidNotRun ,
55
55
RanSuccessfully ,
56
56
Erroreded
57
- }
57
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "RootDirectory" : " ./" ,
3
+ "IgnorePatterns" : [],
4
+ "NpmBuildCommand" : " publish" ,
5
+ "DotNetTargetFramework" : " net8.0" ,
6
+ "DotNetLangVersion" : " latest" ,
7
+ "EnableNetAnalyzers" : true ,
8
+ "EnforceCodeStyleInBuild" : true ,
9
+ "RunDotnetFormat" : true ,
10
+ "NugetAudit" : {
11
+ "NuGetAudit" : true ,
12
+ "AuditMode" : " all" ,
13
+ "AuditLevel" : " low"
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+
2
+ $configPath = " $PSScriptRoot /code-updater-config.json"
3
+ $runLocation = " $PSScriptRoot /../"
4
+
5
+ $startPath = Get-Location
6
+
7
+ Set-Location $runLocation
8
+ & " code-updater" -- config " $configPath "
9
+
10
+ Read-Host " Press enter to exit..."
11
+
12
+ Set-Location $startPath
You can’t perform that action at this time.
0 commit comments