Title: Subdirectory dependencies result in KeyNotFoundException when using full generation enabled · Issue #149 · microsoft/MSBuildForUnity · GitHub
Open Graph Title: Subdirectory dependencies result in KeyNotFoundException when using full generation enabled · Issue #149 · microsoft/MSBuildForUnity
X Title: Subdirectory dependencies result in KeyNotFoundException when using full generation enabled · Issue #149 · microsoft/MSBuildForUnity
Description: 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 ...
Open Graph Description: 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 li...
X Description: 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 woul...
Opengraph URL: https://github.com/microsoft/MSBuildForUnity/issues/149
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Subdirectory dependencies result in KeyNotFoundException when using full generation enabled","articleBody":"Hi everyone,\r\n\r\nI'm trying to make some dependencies only available for the Editor mode of Unity for example:\r\n`Assets/UMVC/Editor/EditorDependencies/UMVC.Editor.Dependencies.msb4u.csproj`\r\n\r\nAnd I would like also to have another csproj file for runtime deps as follows:\r\n`Assets/UMVC/PlayerDependencies/UMVC.Player.Dependencies.msb4u.csproj`\r\n\r\nAnd it throws this error:\r\n\r\n```\r\nKeyNotFoundException: The given key was not present in the dictionary.\r\nSystem.Collections.Generic.SortedDictionary`2[TKey,TValue].get_Item (TKey key) (at \u003cef151b6abb5d474cb2c1cb8906a8b5a4\u003e:0)\r\nMicrosoft.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/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/Exporters/TemplatedExporter/TemplatedSolutionExporter.cs:240)\r\nMicrosoft.Build.Unity.ProjectGeneration.Exporters.TemplatedExporter.TemplatedSolutionExporter.Write () (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/Exporters/TemplatedExporter/TemplatedSolutionExporter.cs:124)\r\nMicrosoft.Build.Unity.ProjectGeneration.UnityProjectInfo.ExportSolution (Microsoft.Build.Unity.ProjectGeneration.Exporters.IUnityProjectExporter unityProjectExporter, System.IO.FileInfo solutionFilePath, System.IO.DirectoryInfo generatedProjectsFolder) (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/UnityProjectInfo.cs:553)\r\nMicrosoft.Build.Unity.ProjectGeneration.MSBuildTools.RegenerateEverything (Microsoft.Build.Unity.ProjectGeneration.UnityProjectInfo unityProjectInfo, System.Boolean completeGeneration) (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:342)\r\nMicrosoft.Build.Unity.ProjectGeneration.MSBuildTools.RefreshGeneratedOutput (System.Boolean forceGenerateEverything, System.Boolean forceCompleteGeneration) (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:247)\r\nMicrosoft.Build.Unity.ProjectGeneration.MSBuildTools.GenerateSDKProjects () (at Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20200131.11/Editor/ProjectGenerator/Scripts/MSBuildTools.cs:157)\r\n\r\n```\r\n\r\nDoes is it possible to make some projects reference only available for example the Unity editor?","author":{"url":"https://github.com/loic-lopez","@type":"Person","name":"loic-lopez"},"datePublished":"2021-09-02T16:44:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/149/MSBuildForUnity/issues/149"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f1d5e007-9a4d-7057-d729-6eb983e58139 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8D6:3B14FD:1145925:170A34D:697D1220 |
| html-safe-nonce | 361b6e350da51e344435a984ce0feabbaef6cf6e78e1828dd646db4038d98876 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEQ2OjNCMTRGRDoxMTQ1OTI1OjE3MEEzNEQ6Njk3RDEyMjAiLCJ2aXNpdG9yX2lkIjoiNDQ1NDIxOTc5MzEzNzczNDE3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 381ffb428e57bfe922a8e708d4b8df95dd7ce932a22297f614a7a5a13cf192f2 |
| hovercard-subject-tag | issue:986952704 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/MSBuildForUnity/149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/412687e06f45d1c6266c411a02f49dc1eb41731ea7fd97b33e983d3a8409a4ed/microsoft/MSBuildForUnity/issues/149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/412687e06f45d1c6266c411a02f49dc1eb41731ea7fd97b33e983d3a8409a4ed/microsoft/MSBuildForUnity/issues/149 |
| og:image:alt | 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 li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | loic-lopez |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4270289760ed79c539b4df0bf901fb752ee16d6a98c6589b1c6b6d5d4e1a000 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/MSBuildForUnity git https://github.com/microsoft/MSBuildForUnity.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 199713509 |
| octolytics-dimension-repository_nwo | microsoft/MSBuildForUnity |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 199713509 |
| octolytics-dimension-repository_network_root_nwo | microsoft/MSBuildForUnity |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7add7da55b3463f73608a5dd149b156c4e76f2b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width