microsoft / MSBuildForUnity

MSBuild integration in Unity
MIT License
353 stars 33 forks source link

Propagate Unity context to external projects #80

Open olga-microsoft opened 4 years ago

olga-microsoft commented 4 years ago

Propagate Unity context to external projects. My dependency references UnityEditor and when the dll is copied to the output folder, MSBuild breaks, so I have to manually remove it.

andreiborodin commented 4 years ago

This is similar to the #67 issues, however, in that case the source lives outside of the Unity project but the C# project file has direct references to the current Unity project's generated files.

In this case, the C# project file has no references to any of the generated files of the current Unity project, but must be given the appropriate references to build.

andreiborodin commented 4 years ago

This is also similar to having one Unity project references projects generated in another Unity project but using the former's data.