Build Microsoft.PowerShell.CrossCompatibility for net8 like Engine and Rules
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- csharp, powershell
- Domínio
- backend, build-system
Direção de pesquisa
Start with Microsoft.PowerShell.CrossCompatibility.csproj and compare its target frameworks and references with the Engine project. Then check PSCompatibilityCollector.psm1, PSCompatibilityCollector/build.ps1, and Directory.Packages.props to trace where the framework and package are selected. Done means CrossCompatibility builds for net8 and net462, Rules no longer receives the extra PowerShellStandard.Library reference, and the collector uses the matching Core build.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary of the new feature
Since #2073, Engine and Rules target net8;net462 and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, still targets netstandard2.0;net462 and compiles against PowerShellStandard.Library 5.1.1 for the Core build.
This has two effects:
- PowerShellStandard.Library flows from CrossCompatibility into Rules, next to System.Management.Automation 7.4, so Rules gets two reference assemblies for System.Management.Automation. It only works because the SDK's conflict resolution picks the higher assembly version.
- Building PSScriptAnalyzer needs PowerShellStandard.Library just for this one project.
The netstandard2.0 build lets PSCompatibilityCollector load on any PowerShell 6 or newer. Every supported PowerShell 7 is 7.4 or newer, which runs a net8 build, and the shipped profiles were last collected for PowerShell 7.0 (#1429).
Proposed technical implementation details (optional)
Target net8;net462 in CrossCompatibility, with System.Management.Automation for net8 like Engine:
Microsoft.PowerShell.CrossCompatibility.csproj:netstandard2.0becomesnet8,PowerShellStandard.LibrarybecomesSystem.Management.Automation.PSCompatibilityCollector.psm1andPSCompatibilityCollector/build.ps1:netstandard2.0becomesnet8.Directory.Packages.props: drop PowerShellStandard.Library.
The collector would then need PowerShell 7.4 or newer on Core. Windows PowerShell keeps the net462 build.
If you'd rather keep netstandard2.0, PrivateAssets="all" on the PowerShellStandard.Library reference would at least keep it from flowing into Rules, as it's only needed for compiling.
I can open a PR for either.
What is the latest version of PSScriptAnalyzer at the point of writing
1.25.0
- Linguagem predominante
- C#
- Estrelas
- 2.2k
- Forks
- 422
- Merge médio
- 2h 23min
- PRs com merge (30d)
- 25
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/PSScriptAnalyzer
-
Up-for-Grabs
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
PowerShell/PSScriptAnalyzer#2213 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 18/100
PowerShell/PSScriptAnalyzer#2302 ·
Mantenedores costumam responder em até 1 dia
-
Invoke-ScriptAnalyzer fails intermittently with NullReferenceException in CommandInfo.ResolveParameter (ProvideCommentHelp / AvoidReservedCharInCmdlet race on Export-ModuleMember)Talvez já em andamento @jessehouwing assumiu há 89 dias. AbertaIssue - Bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
PowerShell/PSScriptAnalyzer#2229 · 6 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
PowerShell/PSScriptAnalyzer#2222 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
The new `docs\Rules\README.md` format causes merge issuesTalvez já em andamento @HuffmanStacks assumiu há 8 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
PowerShell/PSScriptAnalyzer#2220 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PowerShell/PSScriptAnalyzer
Issues semelhantes
-
area-templates triage:bot-seen triage:needs-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/aspire#22356 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
PowerShell/PowerShell#28432 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
microsoft/aspire.dev#2184 ·
Mantenedores costumam responder em até 2 dias
-
area-controls-refreshview platform/ios s/triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
dotnet/maui#40314 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Needs: Triage (Functions) v5 v5-preview5
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Azure/azure-functions-core-tools#5918 ·
Mantenedores costumam responder em até 1 dia