We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The path specified in a reference is respected during compilation, but not during execution.
Repro Steps: Create an inline task, add a reference to a non-standard assembly and attempt to use it in a code fragment.
This bug has also been reported on StackOverflow.
Code that reproduces the error:
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="TestBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="Hello" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" > <ParameterGroup /> <Task> <Reference Include="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.XmlTransform.dll"/> <Reference Include="System.Xml" /> <Code Type="Fragment" Language="cs"> <![CDATA[ var f = new Microsoft.Web.XmlTransform.XmlTransformationException("test"); Log.LogMessage("test: " + f.Message); ]]> </Code> </Task> </UsingTask> <Target Name="TestBuild"> <Hello /> </Target> </Project>
The text was updated successfully, but these errors were encountered:
This is still an issue if using RoslynCodeTaskFactory. error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly
RoslynCodeTaskFactory
error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly
But it does work with CodeTaskFactory.
CodeTaskFactory
Sorry, something went wrong.
No branches or pull requests
The path specified in a reference is respected during compilation, but not during execution.
Repro Steps: Create an inline task, add a reference to a non-standard assembly and attempt to use it in a code fragment.
This bug has also been reported on StackOverflow.
Code that reproduces the error:
The text was updated successfully, but these errors were encountered: