The specified solution configuration "Debug|Desktop" is invalid

Aberta
#544 0 comentários 0 reações 0 responsáveis Ver no GitHub

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
28/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
csharp
Domínio
build-system, cli

Direção de pesquisa

The payload shows only the MSBuild error MSB4126 for a Debug|Desktop configuration, a solution whose SolutionConfigurationPlatforms section lists just Debug|Any CPU and Release|Any CPU, and the tool's -u update run. Start by reproducing with a minimal solution that has those two configurations, then find where the tool passes Configuration and Platform to MSBuild. Done means the update runs cleanly on that solution, or the cause of the stray Desktop platform is identified. No maintainer has replied yet, so confirm the approach before writing a patch.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Executing dotnet outdated -u in Visual Studio in the root directory (of a .NET 8 app), the next error occurs:

Unable to process the project `\SolutionName.sln. Are you sure this is a valid .NET Core or .NET Standard project type?

Here is the full error message returned from the Microsoft Build Engine:

MSBuild version 17.9.6+a4ecab324 for .NET
SolutionName.sln.metaproj : error MSB4126: The specified solution configuration "Debug|Desktop" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [\SolutionName.sln]

    • exit code: 1

The solution file contains:

	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection

Is it possible to override/manually specify the Configuration and Platform?

Linguagem predominante
C#
Estrelas
1.7k
Forks
172
Merge médio
1d 19h
PRs com merge (30d)
39

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de dotnet-outdated/dotnet-outdated

Todas as issues de dotnet-outdated/dotnet-outdated

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.