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
"TransformWebConfig" task could not be loaded #1073
Comments
It may be the same reason for a special case, but same is true for Service Fabric's *.sfproj projects. |
I am trying to build *.sfproj through MS Build 15.0 (15.1.548.43366) and get the same exception, the only difference seems to be that I am using the Enterprise version of Visual Studio 2017 The actual command that is being executed seems to be the following: Am I doing something wrong here? |
If you don't need to transform web.config in your ASP.NET Core application, a temporary workaround could be to comment out "TransformWebConfig" task and "_TransformWebConfig" target in Microsoft.NET.Sdk.Publish.TransformFiles.targets. Hopefully later there will be a proper resolution of this issue. |
This probably needs to go into the websdk repo https://github.com/aspnet/websdk where those tasks / targets are coming from.. |
While looking through the different .target files I have noticed another issue: _PublishTaskAssemblyFullPath from the |
We just fixed this issue in websdk - dotnet/websdk#174 Work-around: This issue should only happen when executing the 64 bit version of msbuild. Once the fix is rolled out, it should work for 64 bit as well. Until then, please use the msbuild under Bin\msbuild.exe. |
Closing since this has been addressed in the web sdk already. |
Hey @vijayrkn, Thanks |
This fix is only available in the 2.0 version of the cli. Can you check what version of dotnet cli is installed on the agent? |
I have the same issue, where TransformwebConfig could not be loaded due to the error in path "\" Based on https://www.visualstudio.com/en-us/docs/build/concepts/agents/hosted How do I work around this issue when I am using a hosted agent? Answer: |
C:\Program Files\dotnet\sdk\3.0.100-preview-009812\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets(49,5): 错误 MSB4018: “TransformWebConfig”任务意外失败。 |
@night-king - The log shows that you have an incorrect configuration setup. You cannot have inprocess hosting with AspNetCoreModule. Can you add this to the csproj? This should fix the issue.
|
I got similar issue as @night-king. "Error MSB4018: The "TransformWebConfig" task failed unexpectedly. System.Exception: In process hosting is not supported for AspNetCoreModule. Change the AspNetCoreModule to atleast AspNetCoreModuleV2." My local builds fine. The issue only happened when I publish to azure.
|
Fixup comment in EmailSender
We experience this error when building new VS2017 csproj project with msbuild 2015:
Also it seems some other people experience it as well. See dotnet/msbuild#1010 and http://stackoverflow.com/q/42805862/213725
The text was updated successfully, but these errors were encountered: