Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An equivalent project (a project with the same global properties and tools version) is already present in the project collection #635

Open
Tracked by #296
yehudahaber opened this issue Jun 16, 2021 · 6 comments
Labels
bug Something isn't working community reported enhancement New feature or request Triaged Label to show that UA team has triaged this issue.

Comments

@yehudahaber
Copy link

Getting the below error when updated the startup project (last) of all the projects in the solution.
This is in the "Convert project file to SDK style" step

[19:58:24 INF] [dotnet] at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args)
[19:58:24 INF] [dotnet] at Microsoft.Build.Evaluation.ProjectCollection.LoadedProjectCollection.AddProject(Project project)
[19:58:24 INF] [dotnet] at Microsoft.Build.Evaluation.ProjectCollection.OnAfterRenameLoadedProject(String oldFullPathIfAny, Project project)
[19:58:24 INF] [dotnet] at Microsoft.Build.Evaluation.Project.ProjectImpl.b__141_0(String oldFullPath)
[19:58:24 INF] [dotnet] at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) [19:58:24 INF] [dotnet] at Microsoft.Build.Evaluation.Project..ctor(ProjectRootElement xml, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
[19:58:24 INF] [dotnet] at MSBuild.Abstractions.UnconfiguredProject.LoadProjects(ProjectCollection collection, ProjectRootElement rootElement) in //src/MSBuild.Abstractions/UnconfiguredProject.cs:line 38
[19:58:24 INF] [dotnet] at MSBuild.Abstractions.MSBuildConversionWorkspace.TryCreateSdkBaselineProject(String projectFilePath, IProject project, IProjectRootElement root, ImmutableDictionary2 configurations, String tfm, Boolean keepCurrentTFMs, Nullable1& baselineProject) in /
/src/MSBuild.Abstractions/MSBuildConversionWorkspace.cs:line 194
[19:58:24 INF] [dotnet] at MSBuild.Abstractions.MSBuildConversionWorkspace..ctor(ImmutableArray`1 paths, Boolean noBackup, String tfm, Boolean keepCurrentTFMs, Boolean forceWeb) in //src/MSBuild.Abstractions/MSBuildConversionWorkspace.cs:line 55
[19:58:24 INF] [dotnet] at MSBuild.Abstractions.MSBuildConversionWorkspaceLoader.LoadWorkspace(String path, Boolean noBackup, String tfm, Boolean keepCurrentTFMs, Boolean forceWeb) in /
/src/MSBuild.Abstractions/MSBuildConversionWorkspaceLoader.cs:line 42
[19:58:24 INF] [dotnet] at MSBuild.Conversion.Program.Run(String project, String workspace, String msbuildPath, String tfm, Boolean forceWebConversion, Boolean preview, Boolean diffOnly, Boolean noBackup, Boolean keepCurrentTfms) in /_/src/try-convert/Program.cs:line 102
[19:58:24 ERR] [dotnet] Error: Exited with non-success code: -1

@sunandabalu
Copy link
Member

@yehudahaber Could you share the csproj that you are running UA against?

@yehudahaber
Copy link
Author

1100+ lines in redacted form...
UpgradeAssistantFailed.zip

@sunandabalu
Copy link
Member

@yehudahaber Thanks for the csproj, we will take a look. This looks like a bug.

@sunandabalu sunandabalu added bug Something isn't working Triaged Label to show that UA team has triaged this issue. labels Jun 29, 2021
@sunandabalu
Copy link
Member

/cc @mjrousos

@isaacrlevin
Copy link
Contributor

Is there an update here?

cc @twsouthwick @cathysull

@yehudahaber
Copy link
Author

This is still an issue using the newest version. Is there any guidance on how to get past this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community reported enhancement New feature or request Triaged Label to show that UA team has triaged this issue.
Projects
None yet
Development

No branches or pull requests

4 participants