A reference example with sample code for developers interested publishing transactable, Software as a-Service offers in the Microsoft commercial marketplace.
MIT License
205
stars
302
forks
source link
MeteredTriggerJob is failing during upgrade- : error MSB6006: "/home/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/8.0.8/tools/crossgen2" exited with code 137 #773
Describe the bug
When we try to upgrade the SAAS accelerator using below command , we are ending in to error MeteredTriggerJob is failing. when we use ./dotnet-install.sh -version 6.0.417; `it is working fine.
Error:
/usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(470,5): error MSB6006: "/home/sri/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/8.0.8/tools/crossgen2" exited with code 137. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj]
/usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(358,5): error NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj]
To Reproduce
Steps to reproduce the behavior:
Upgrade using dotnet 8.0.303 version
Expected behavior
MeteredTriggerJob should run with out any exceptions even when we use 8.0.303 version of dotnet
Describe the bug When we try to upgrade the SAAS accelerator using below command , we are ending in to error MeteredTriggerJob is failing. when we use ./dotnet-install.sh -version 6.0.417; `it is working fine.
Command: wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh;
chmod +x dotnet-install.sh;
./dotnet-install.sh -version 8.0.303;$ENV:PATH="$HOME/.dotnet:$ENV:PATH";
dotnet tool install --global dotnet-ef --version 8.0.0;git clone XXX -b main;
cd ./Commercial-Marketplace-SaaS-Accelerator/deployment;.\Upgrade.ps1
-WebAppNamePrefix "XXX"-ResourceGroupForDeployment "XXX"
Error: /usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(470,5): error MSB6006: "/home/sri/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/8.0.8/tools/crossgen2" exited with code 137. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj] /usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(358,5): error NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj]
To Reproduce Steps to reproduce the behavior: Upgrade using dotnet 8.0.303 version
Expected behavior MeteredTriggerJob should run with out any exceptions even when we use 8.0.303 version of dotnet