Сборка и копирование проектов плагина MSBuild в csproj ⇐ C#
Сборка и копирование проектов плагина MSBuild в csproj
I have an C# app app that is loading plugins, during development phase I want to have them copied to app output directory with their dependencies so I can debug easily. I have a task in the app csproj that takes care of it.
That works like a charm for plugins that are not referencing any libs that needs to be built. For projects tha are having dependencies than need to be built, I'm getting error during executing the Build target: error CS0006: Metadata file 'D:\my\project\path\Plugins\Libs\SomeDependencyLib\obj\x64\Debug\net8.0\ref\SomeDependencyLib.dll' could not be found
To me it looks like the nested referenced projects are not being buit, if I compile such project explicitely, then the app task succeeds.
Any hint how to enforce building project with its dependencies via MSBuild task?
Источник: https://stackoverflow.com/questions/781 ... -in-csproj
I have an C# app app that is loading plugins, during development phase I want to have them copied to app output directory with their dependencies so I can debug easily. I have a task in the app csproj that takes care of it.
That works like a charm for plugins that are not referencing any libs that needs to be built. For projects tha are having dependencies than need to be built, I'm getting error during executing the Build target: error CS0006: Metadata file 'D:\my\project\path\Plugins\Libs\SomeDependencyLib\obj\x64\Debug\net8.0\ref\SomeDependencyLib.dll' could not be found
To me it looks like the nested referenced projects are not being buit, if I compile such project explicitely, then the app task succeeds.
Any hint how to enforce building project with its dependencies via MSBuild task?
Источник: https://stackoverflow.com/questions/781 ... -in-csproj
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение