question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when building the template

See original GitHub issue

Building on Ubuntu 20.04. Only installed sdk is 3.1

Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  [info] [16:13:09] Found compilation server
  Running _ComputePackageReferencePublish for Test
  Running _HandlePackageFileConflicts
  Running _ComputeReferenceAssemblies
  Running _ComputeUserRuntimeAssemblies
  Running GenerateBuildDependencyFile
  No output assembly found, will build.
  Running _GenerateRuntimeConfigurationFilesInputCache
  Running GenerateBuildRuntimeConfigurationFiles
  Writing project runtime config file /home/andre/RiderProjects/Tetys/csharp/Test/bin/Debug/netstandard2.0/Test.runtimeconfig.json
  Test -> 
  Skipping updating the h5 compiler. You can always install/update it by calling dotnet tool update --global h5-compiler
  Deleting previous assembly: /home/andre/RiderProjects/Tetys/csharp/Test/bin/Debug/netstandard2.0/Test.dll
  H5 compilation begins now... 
  
  
  
       5555555555555555555555555555555555555555
        5555555555555555555hhhhhhhhhhhhhhhh5555
        555     55555555555hh             h5555 
        555     55555555555hh             h555  
        555     55555555555hh     hhhhhhhhh555  
         55     55555555555hh     hhhhhhhhh555  
         555     5555555555hh     hhhhhhhh5555  
         555              5hh            h5555  
         555              5hh            h555   
          555    5555     5hhhhhhhh      h555   
          555    5555     5hhhhhhhh      h555   
          555     555     5hhhhhhhh     h5555   
          555     555     5hh           h555    
          5555555 555     5hh        hhhh555    
           5555555555555555hhhhhhhhhhhhhh555    
           5555555555555555hhhhhhh5555555555    
                 55555555555555555555           
                   5555555555555555            
  
  
  [info] [16:13:10] Executing h5 compiler with arguments: '--project /home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj --configuration Debug --assembly-version 1.0.0.0'
  [info] [16:13:10] Found compilation server, sending compilation request
  
  
  [info] [16:13:10]  Setting working directory to '/home/andre/RiderProjects/Tetys/csharp/Test'
  [info] [16:13:10]  [B] H5 Compilation
  [info] [16:13:10]  H5 config file is not found. Returning default config
  [info] [16:13:10]  [E] H5 Compilation in 0.0010 seconds
  [info] [16:13:10]  
  
       __ _  _  _  _ 
      |_ |_)|_)/ \|_)
      |__| \| \\_/| \
  
  
  [fail] [16:13:10]  
H5 : error H5003: The SDK 'h5.Target/0.0.11500' specified could not be found.  /home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj [/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj]
  [fail] [16:13:10]  
  Stack Trace:    at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
     at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError)
     at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult)
     at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
     at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
     at Microsoft.Build.Evaluation.Evaluator`4.Evaluate()
     at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive)
     at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
     at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
     at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
     at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
     at H5.Translator.Translator.EnsureProjectProperties()
     at H5.Translator.TranslatorProcessor.SetTranslatorProperties()
     at H5.Translator.TranslatorProcessor.PreProcess(IH5DotJson_AssemblySettings translatorConfiguration)
     at H5.Compiler.CompilationProcessor.Compile(CompilationRequest compilationRequest, UID128 compilationUID, CancellationToken cancellationToken)
/home/andre/.nuget/packages/h5.target/0.0.11500/Sdk/Sdk.targets(462,9): error MSB3073: The command "h5 --project "/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj" --configuration "Debug" --assembly-version "1.0.0.0"" exited with code 1. [/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj]

Build FAILED.

H5 : error H5003: The SDK 'h5.Target/0.0.11500' specified could not be found.  /home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj [/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj]
/home/andre/.nuget/packages/h5.target/0.0.11500/Sdk/Sdk.targets(462,9): error MSB3073: The command "h5 --project "/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj" --configuration "Debug" --assembly-version "1.0.0.0"" exited with code 1. [/home/andre/RiderProjects/Tetys/csharp/Test/Test.csproj]
    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:02.58

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
theolivenbaumcommented, Oct 21, 2020

Hi @IceReaper

Managed to reproduce the problem here on a Linux machine - will test a fix for it now. Meanwhile, you can set a flag on your project file (SkipEmbeddingResources = true) to get it compiling (just remove it once the fix is done):

<Project Sdk="h5.Target/0.0.11500">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
        <LangVersion>7.2</LangVersion>
        <SkipEmbeddingResources>true</SkipEmbeddingResources>         <------- this line
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="h5" Version="0.0.11453" />
        <PackageReference Include="h5.core" Version="0.0.11860" />
        <PackageReference Include="h5.Newtonsoft.Json" Version="0.0.11861" />
        <PackageReference Include="Tesserae" Version="0.0.13054" />
    </ItemGroup>
</Project>
0reactions
IceReapercommented, Nov 13, 2020

I can confirm this is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entire Project reverted to template on opening project after ...
Basically, as the title said, my project crashed, went to reopen it, and found the entire project was wiped back to its intial...
Read more >
[Resolved] - Game crashing when I open template - Crayta
Describe the bug: I made a template from folder, which had script pointing to locator, which was not included into the template.
Read more >
UE5 Crash when building lighting on default VR Template
I load the default VR template, import a simple model into it, and attempt to build lightning. NO changes to any settings, no...
Read more >
VS 2017 crashes when compiling template implementation
It compiles fine when the ThisHandleId() function is defined directly below its definition. Is something wrong with my template implementation?
Read more >
Manually Loading Template Add-Ins Crashing Word
1. Closing any open document, then loading the add-in continues to work as before. E.g., there is no crash and the document can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found