PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.85k stars 373 forks source link

Generate strongly typed resources as part of build #1855

Closed bergmeister closed 8 months ago

bergmeister commented 1 year ago

PR Summary

At the moment one needs to update the Strings.Designer.cs files when new entries are adding to String.resx files because the .NET CLI cannot generate them by default, which makes it hard for developers that do not use Visual Studio but VS-Code or just CLI. However, there is a way to make this work and generate the strongly resource as part of the build and make it work for CLI, VS-Code (when it does a restore) and Visual Studio, which uses MSBuild, see here: https://github.com/dotnet/msbuild/issues/4751

PR Checklist

JamesWTruher commented 1 year ago

@bergmeister if you could solve the merge conflict that would be great.

bergmeister commented 1 year ago

@JamesWTruher done. resolution was easy because this PR removes Strings.Designer.cs

bergmeister commented 9 months ago

Close and re-open to get latest CI check