FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Generate strongly typed resources as part of build by bergmeister · Pull Request #1855 · PowerShell/PSScriptAnalyzer · GitHub

Generate strongly typed resources as part of build - #1855

Merged
James Truher (JamesWTruher) merged 4 commits into
PowerShell:masterfrom
bergmeister:resgen
Jan 16, 2024
Merged

Generate strongly typed resources as part of build#1855
James Truher (JamesWTruher) merged 4 commits into
PowerShell:masterfrom
bergmeister:resgen

Conversation

Copy link
Copy Markdown
Collaborator

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: dotnet/msbuild#4751

PR Checklist

Christoph Bergmeister (bergmeister) changed the title Generate strongly typed resourced as part of build Generate strongly typed resources as part of build Oct 27, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this looks good - it's great that we don't need to do this manually.

Copy link
Copy Markdown
Contributor

Christoph Bergmeister (@bergmeister) if you could solve the merge conflict that would be great.

… into resgen

# Conflicts:
#	Rules/Strings.Designer.cs

Copy link
Copy Markdown
Collaborator Author

James Truher (@JamesWTruher) done. resolution was easy because this PR removes Strings.Designer.cs

Copy link
Copy Markdown
Collaborator Author

Close and re-open to get latest CI check

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL