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

Subdirectory dependencies result in KeyNotFoundException when using full generation enabled #149

Open
loic-lopez opened this issue Sep 2, 2021 · 0 comments

Comments

@loic-lopez
Copy link

loic-lopez commented Sep 2, 2021

Hi everyone,

I'm trying to make some dependencies only available for the Editor mode of Unity for example:
Assets/UMVC/Editor/EditorDependencies/UMVC.Editor.Dependencies.msb4u.csproj

And I would like also to have another csproj file for runtime deps as follows:
Assets/UMVC/PlayerDependencies/UMVC.Player.Dependencies.msb4u.csproj

And it throws this error:

KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.SortedDictionary`2[TKey,TValue].get_Item (TKey key) (at <ef151b6abb5d474cb2c1cb8906a8b5a4>:0)
Microsoft.Build.Unity.ProjectGeneration.Exporters.TemplatedExporter.TemplatedSolutionExporter.WriteProject (Microsoft.Build.Unity.ProjectGeneration.Exporters.TemplatedExporter.TemplatedWriter solutionWriter, System.Guid projectGuid, Microsoft.Build.Unity.ProjectGeneration.Exporters.SolutionProject project) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/Exporters/TemplatedExporter/TemplatedSolutionExporter.cs:240)
Microsoft.Build.Unity.ProjectGeneration.Exporters.TemplatedExporter.TemplatedSolutionExporter.Write () (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/Exporters/TemplatedExporter/TemplatedSolutionExporter.cs:124)
Microsoft.Build.Unity.ProjectGeneration.UnityProjectInfo.ExportSolution (Microsoft.Build.Unity.ProjectGeneration.Exporters.IUnityProjectExporter unityProjectExporter, System.IO.FileInfo solutionFilePath, System.IO.DirectoryInfo generatedProjectsFolder) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/UnityProjectInfo.cs:553)
Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.RegenerateEverything (Microsoft.Build.Unity.ProjectGeneration.UnityProjectInfo unityProjectInfo, System.Boolean completeGeneration) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:342)
Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.RefreshGeneratedOutput (System.Boolean forceGenerateEverything, System.Boolean forceCompleteGeneration) (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:247)
Microsoft.Build.Unity.ProjectGeneration.MSBuildTools.GenerateSDKProjects () (at Library/PackageCache/[email protected]/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:157)

Does is it possible to make some projects reference only available for example the Unity editor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant