Bug Report T951686
Visible to All Users

Blazor DevExpress - .NET 5.0 - The "Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed" error occurs on publishing a project of v20.1.8

created 4 years ago (modified 4 years ago)

This issue can be reproduced with the following steps:

  1. Create a Blazor Wasm project for .NET 5.0 using this instruction: Microsoft Templates.
  2. Add the DevExpress.Blazor v20.1.8 NuGet package.
  3. Try to publish the project.

After these steps the following error is displayed:

Possible workaround:
Open the "C:\Users.nuget\packages\devexpress.blazor\20.1.8\build\Microsoft.AspNetCore.StaticWebAssets.props" file.
Remove the following code from this file:

Code
<StaticWebAsset Include="$(MSBuildThisFileDirectory)..\staticwebassets\.gitignore"> <SourceType>Package</SourceType> <SourceId>DevExpress.Blazor</SourceId> <ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot> <BasePath>_content/DevExpress.Blazor</BasePath> <RelativePath>.gitignore</RelativePath> </StaticWebAsset>

Publish the project again.

Answers approved by DevExpress Support

created 4 years ago

We have fixed the issue described in this ticket and will include the fix in our next update. The update will be available via the DevExpress NuGet server. Refer to this page to obtain your personal NuGet feed URL.

    Comments (1)

      Awesome guys, thank you!

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.