core icon indicating copy to clipboard operation
core copied to clipboard

Unable to build WebSharper.Sitelets

Open ingted opened this issue 1 year ago • 1 comments

Hi Great Websharperer, ^0^

Rebuild started...
Restored G:\git\core\tests\ProxyProjectTest\ProxyProjectTest.fsproj (in 6 ms).
Restored G:\git\core\tests\ProxyProjectTest.Proxy\ProxyProjectTest.Proxy.fsproj (in 8 ms).
Restored G:\git\core\src\stdlib\WebSharper.Testing\WebSharper.Testing.fsproj (in 5 ms).
Restored G:\git\core\src\stdlib\WebSharper.MathJS\WebSharper.MathJS.fsproj (in 3 ms).
Restored G:\git\core\src\stdlib\WebSharper.MathJS.Extensions\WebSharper.MathJS.Extensions.fsproj (in 4 ms).
Restored G:\git\core\src\stdlib\WebSharper.Main\WebSharper.Main.fsproj (in 3 ms).
Restored G:\git\core\tests\Web.FSharp\Web.FSharp.fsproj (in 54 ms).
Restored G:\git\core\src\stdlib\WebSharper.JavaScript\WebSharper.JavaScript.fsproj (in 3 ms).
Restored G:\git\core\src\stdlib\WebSharper.Main.Proxies\WebSharper.Main.Proxies.fsproj (in 3 ms).
Restored G:\git\core\tests\WebSharper.Html5.Tests\WebSharper.Html5.Tests.fsproj (in 5 ms).
Restored G:\git\core\tests\WebSharper.CSharp.Tests\WebSharper.CSharp.Tests.csproj (in 8 ms).
Restored G:\git\core\src\stdlib\WebSharper.Control\WebSharper.Control.fsproj (in 4 ms).
Restored G:\git\core\src\stdlib\WebSharper.Collections\WebSharper.Collections.fsproj (in 3 ms).
Restored G:\git\core\src\sitelets\WebSharper.Web\WebSharper.Web.fsproj (in 4 ms).
Restored G:\git\core\tests\WebSharper.CSharp.StaticHtml.Tests\WebSharper.CSharp.StaticHtml.Tests.csproj (in 13 ms).
Restored G:\git\core\src\sitelets\WebSharper.Sitelets\WebSharper.Sitelets.fsproj (in 5 ms).
Restored G:\git\core\tests\Web\Web.csproj (in 106 ms).
Restored G:\git\core\src\compiler\WebSharper.InterfaceGenerator\WebSharper.InterfaceGenerator.fsproj (in 3 ms).
Restored G:\git\core\src\sitelets\WebSharper.Sitelets.Offline\WebSharper.Sitelets.Offline.fsproj (in 10 ms).
Restored G:\git\core\src\compiler\WebSharper.Core.JavaScript\WebSharper.Core.JavaScript.fsproj (in 1 ms).
Restored G:\git\core\src\compiler\WebSharper.Core\WebSharper.Core.fsproj (in 3 ms).
Restored G:\git\core\src\sitelets\WebSharper.AspNetCore\WebSharper.AspNetCore.fsproj (in 14 ms).
Restored G:\git\core\src\compiler\WebSharper.Compiler\WebSharper.Compiler.fsproj (in 6 ms).
Restored G:\git\core\tests\WebSharper.StaticHtml.Tests.NetStandard\WebSharper.StaticHtml.Tests.NetStandard.fsproj (in 7 ms).
Restored G:\git\core\tests\WebSharper.StaticHtml.Tests\WebSharper.StaticHtml.Tests.fsproj (in 14 ms).
Restored G:\git\core\tests\WebSharper.Sitelets.Tests\WebSharper.Sitelets.Tests.fsproj (in 5 ms).
Restored G:\git\core\tests\WebSharper.SPA.Tests\WebSharper.SPA.Tests.fsproj (in 13 ms).
Restored G:\git\core\tests\WebSharper.Module.Tests\WebSharper.Module.Tests.fsproj (in 5 ms).
Restored G:\git\core\tests\WebSharper.InterfaceGenerator.Tests\WebSharper.InterfaceGenerator.Tests.fsproj (in 3 ms).
Restored G:\git\core\tests\WebSharper.InterfaceGenerator.Tests.LatestFSharp\WebSharper.InterfaceGenerator.Tests.LatestFSharp.fsproj (in 4 ms).
Restored G:\git\core\tests\WebSharper.Web.Tests\WebSharper.Web.Tests.fsproj (in 7 ms).
Restored G:\git\core\tests\Website\Website.fsproj (in 11 ms).
Restored G:\git\core\tests\WebSharper.Tests\WebSharper.Tests.fsproj (in 11 ms).
Restored G:\git\core\tests\WebSharper.CSharp.Sitelets.Tests\WebSharper.CSharp.Sitelets.Tests.csproj (in 5 ms).
Restored G:\git\core\tests\WebSharper.CSharp.Interop.Tests\WebSharper.CSharp.Interop.Tests.csproj (in 5 ms).
Restored G:\git\core\tests\StressTesting\StressTesting.fsproj (in 199 ms).
Restored G:\git\core\tests\WebSharper.Compiler.FSharp.Tests\WebSharper.Compiler.FSharp.Tests.fsproj (in 40 ms).
Restored G:\git\core\tests\WebSharper.Collections.Tests\WebSharper.Collections.Tests.fsproj (in 4 ms).
Restored G:\git\core\tests\WebSharper.Core.JavaScript.Tests\WebSharper.Core.JavaScript.Tests.fsproj (in 39 ms).
Restored G:\git\core\tests\Web.Giraffe\Web.Giraffe.fsproj (in 31 ms).
1>------ Rebuild All started: Project: WebSharper.Core.JavaScript, Configuration: Debug Any CPU ------
Restored G:\git\core\tests\WebSharper.CSharp.Analyzer.Tests\WebSharper.CSharp.Analyzer.Tests.fsproj (in 104 ms).
1>WebSharper.Core.JavaScript -> G:\git\core\build\Debug\netstandard2.0\WebSharper.Core.JavaScript.dll
2>------ Rebuild All started: Project: WebSharper.Core, Configuration: Debug Any CPU ------
2>WebSharper.Core -> G:\git\core\build\Debug\netstandard2.0\WebSharper.Core.dll
3>------ Rebuild All started: Project: WebSharper.InterfaceGenerator, Configuration: Debug Any CPU ------
3>G:\git\core\src\compiler\WebSharper.InterfaceGenerator\Type.fs(681,15): warning FS0026: This rule will never be matched
3>WebSharper.InterfaceGenerator -> G:\git\core\build\Debug\netstandard2.0\WebSharper.InterfaceGenerator.dll
3>Done building project "WebSharper.InterfaceGenerator.fsproj".
4>------ Rebuild All started: Project: WebSharper.JavaScript, Configuration: Debug Any CPU ------
4>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
4>Done building project "WebSharper.JavaScript.fsproj" -- FAILED.
5>------ Rebuild All started: Project: WebSharper.Main.Proxies, Configuration: Debug Any CPU ------
5>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
5>Done building project "WebSharper.Main.Proxies.fsproj" -- FAILED.
6>------ Rebuild All started: Project: WebSharper.Main, Configuration: Debug Any CPU ------
6>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
6>Done building project "WebSharper.Main.fsproj" -- FAILED.
7>------ Rebuild All started: Project: WebSharper.Collections, Configuration: Debug Any CPU ------
7>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
7>Done building project "WebSharper.Collections.fsproj" -- FAILED.
8>------ Rebuild All started: Project: WebSharper.Web, Configuration: Debug Any CPU ------
8>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
8>Done building project "WebSharper.Web.fsproj" -- FAILED.
9>------ Rebuild All started: Project: WebSharper.Sitelets, Configuration: Debug Any CPU ------
9>G:\git\core\msbuild\WebSharper.FSharp.Internal.targets(48,5): error MSB4062: The "WebSharper.MSBuild.FSharp.WebSharperTask" task could not be loaded from the assembly G:\git\core\msbuild\\../build/Debug/FSharp/netstandard2.0/WebSharper.MSBuild.FSharp.dll. Could not load file or assembly 'file:///G:\git\core\build\Debug\FSharp\netstandard2.0\WebSharper.MSBuild.FSharp.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
9>Done building project "WebSharper.Sitelets.fsproj" -- FAILED.
========== Rebuild All: 3 succeeded, 6 failed, 0 skipped ==========
========== Elapsed 00:14.132 ==========

Seems like all the MSBuild related files are gone? Or it relies to VS C++ etc. that I did't successfully built it?

Regards Thank you

ingted avatar Jan 11 '23 07:01 ingted

Hi!

Compiler parts are split to a separate VS solution WebSharper.Compiler.sln so that their dlls are not locked by VS while working on them. For a full build, you need to use build script which also runs the dotnet publish for the compiler parts. See https://github.com/dotnet-websharper/core/blob/master/CONTRIBUTING.md#building-websharper-from-the-command-line

Jand42 avatar Jan 12 '23 08:01 Jand42