buildAll.sh fails "out of the box" on macOS #351

Closed
opened 2026-01-29 16:37:11 +00:00 by claunia · 2 comments
Owner

Originally created by @markmcgookin on GitHub (Jun 27, 2019).

Originally assigned to: @robertmuehsig on GitHub.

  • Version:
    Latest version from source based on commit dc8987d
    $ node --version v10.15.3
    $ dotnet --version 2.2.107

  • Target: macOS
    Pull the latest version of the source code on macOS and run buildAll.sh you get the error:

Build FAILED.
Solution file error MSB4249: Unable to build website project "ElectronNET.Host". The ASP.NET compiler is only available on the .NET Framework version of MSBuild.

Steps to Reproduce:

  1. Pull latest version
  2. Run buildAll.sh
Originally created by @markmcgookin on GitHub (Jun 27, 2019). Originally assigned to: @robertmuehsig on GitHub. * **Version**: Latest version from source based on commit dc8987d $ node --version v10.15.3 $ dotnet --version 2.2.107 * **Target**: macOS Pull the latest version of the source code on macOS and run buildAll.sh you get the error: Build FAILED. Solution file error MSB4249: Unable to build website project "ElectronNET.Host". The ASP.NET compiler is only available on the .NET Framework version of MSBuild. Steps to Reproduce: 1. Pull latest version 2. Run buildAll.sh
claunia added the bug label 2026-01-29 16:37:11 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (May 9, 2020):

I now referenced the assemblies directly. Works best for me.

@GregorBiswanger commented on GitHub (May 9, 2020): I now referenced the assemblies directly. Works best for me.
Author
Owner

@dafergu2 commented on GitHub (May 17, 2020):

This issues till happens if you simply run dotnet build in the main directory. In addition, the builds for linux and windows fail during the buildAll.sh as well.

The issue with the solution is due to the project reference in the solution file. @GregorBiswanger Is there a need to set the following in the .sln file?

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "ElectronNET.Host", "ElectronNET.Host\", "{B33E9B82-B6B4-4DB0-B6EE-61CC34641518}"
	ProjectSection(WebsiteProperties) = preProject
		TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
		Debug.AspNetCompiler.VirtualPath = "/localhost_56840"
		Debug.AspNetCompiler.PhysicalPath = "ElectronNET.Host\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56840\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/localhost_56840"
		Release.AspNetCompiler.PhysicalPath = "ElectronNET.Host\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56840\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "56840"
		SlnRelativePath = "ElectronNET.Host\"
	EndProjectSection
EndProject
@dafergu2 commented on GitHub (May 17, 2020): This issues till happens if you simply run `dotnet build` in the main directory. In addition, the builds for linux and windows fail during the `buildAll.sh` as well. The issue with the solution is due to the project reference in the solution file. @GregorBiswanger Is there a need to set the following in the .sln file? ``` Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "ElectronNET.Host", "ElectronNET.Host\", "{B33E9B82-B6B4-4DB0-B6EE-61CC34641518}" ProjectSection(WebsiteProperties) = preProject TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" Debug.AspNetCompiler.VirtualPath = "/localhost_56840" Debug.AspNetCompiler.PhysicalPath = "ElectronNET.Host\" Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56840\" Debug.AspNetCompiler.Updateable = "true" Debug.AspNetCompiler.ForceOverwrite = "true" Debug.AspNetCompiler.FixedNames = "false" Debug.AspNetCompiler.Debug = "True" Release.AspNetCompiler.VirtualPath = "/localhost_56840" Release.AspNetCompiler.PhysicalPath = "ElectronNET.Host\" Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56840\" Release.AspNetCompiler.Updateable = "true" Release.AspNetCompiler.ForceOverwrite = "true" Release.AspNetCompiler.FixedNames = "false" Release.AspNetCompiler.Debug = "False" VWDPort = "56840" SlnRelativePath = "ElectronNET.Host\" EndProjectSection EndProject ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#351