Comments (2)
Resolved by removing global.json from the root of the api project and pushing to GitHub
from oryx.
Hello @ismailhozza, how did you solve it? Do you have a link to the project?
I've more or less the same issue:
- Api is .NET 7
- Client (Blazor) is .NET 8
And the error message is like:
Downloading and extracting 'dotnet' version '7.0.404' to '/opt/dotnet/7.0.404'...
Detected image debian flavor: bullseye.
Downloaded in 5 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: dotnet...
Done in 10 sec(s).
image detector file exists, platform is dotnet..
Using .NET Core SDK Version: 7.0.404
"2024-03-06 17:44:32"|ERROR|
Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.404
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Determining projects to restore...
/opt/dotnet/7.0.404/sdk/7.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(160,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0. Download the .NET SDK from https://aka.ms/dotnet/download [/github/workspace/src/ProtoBufJsonConverter/ProtoBufJsonConverter.csproj::TargetFramework=net8.0]
/opt/dotnet/7.0.404/sdk/7.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(160,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0. Download the .NET SDK from https://aka.ms/dotnet/download [/github/workspace/src-webcil/MetadataReferenceService.Default/MetadataReferenceService.Default.csproj::TargetFramework=net8.0] | 1 | Please build your app locally before publishing. | https://docs.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux
---End of Oryx build logs---
Oryx has failed to build the solution.
See also #2350
from oryx.
Related Issues (20)
- Scripts in appsvc.yaml are mangled by replacing newlines with semicolons
- Add main.js as a startup candidate for Node.js toolset
- npm ERR! Tracker "idealTree" already exists
- Issue in deploying React JS + Node JS application on Azure Devops
- Version '16.20.2' of platform 'nodejs' is not installed HOT 3
- `npm install` time is snaillike HOT 1
- Oryx fails to get package list while building .NET 8 Static Web App
- Deploying python based Azure Function from VS Code fails when latest arcgis library is included
- Http request to retrieve the default version from 'https://oryx-cdn.microsoft.io/java/defaultVersion.bookworm.txt' failed HOT 3
- Issue with latest Azure Function v1.15.0 released
- Unable to retrieve SDKs from oryx-cdn HOT 7
- Failed during oryx build due to \n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracte
- Deployment Failed - Detecting platforms... Error: Oops... An unexpected error has occurred. Error: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1
- NodeJS 20LTS Oryx deploy via local git failing
- let HOT 1
- Deployment failure for Next.js app HOT 2
- oryx cannot build some reference like "xmlsec" automatically
- Consider removing/masking account keys from logs when deploying Azure Functions for the first time HOT 2
- Azure Deployment failed Http request to retrieve the SDKs available to download from 'https://oryx-cdn.microsoft.io' HOT 9
- [BUG] build.sh: command substitution: line 306: syntax error near unexpected token `' ','
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oryx.