-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Assembly search path in UsingTask #674
Comments
Closing this. This is a breaking change in the schema and shouldn't be necessary. In many cases using this pattern would leave a task dll in a non-working state and requires additional knowledge to use. This is akin to deploying an exe and requiring path(s) to dependencies to be passed in that you might not know where they are. In some cases this would be good (perhaps NuGet with target + dll), but in many cases not. If anyone feels strongly against this feel free to discuss. |
I wish to control the search paths of the UsingTask as i am building my custom MSBuild task which depends on other NuGet packages, my task is packed inside its own NuGet package, so all other dependencies are out of the folder with my assembly. |
@Snoopy-hub no, copying assemblies to the task location is the best current solution. #5037 would make it possible in a future .NET (Core) release. |
Consider the following case:
task.dll
depends onreference.dll
.Currently all of the dependencies of
task.dll
will need to be in the same folder as task.dll (standard .NET loader). This generally works well, but may not always ideal for deployment of multiple components. This was encountered internally when thereference.dll
was removed from the GAC.I propose that we add an additional attribute to specify search paths for assemblies. For example:
The text was updated successfully, but these errors were encountered: