-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NET SDK with Microsoft.VisualStudio.JavaScript.SDK dependency results in System.Text.Json - File not found through when specifying NET SDK Version #39152
Comments
@joj here's another - I've made a new label called 'Area-esproj' for tickets related to the javascript project system. It would be great if your team could periodically check this label for untriaged items. |
This was related to
after removing the explicit SDK version in the yaml pipeline, I followed the workaround here: #39148 and it build successfully. Workaround branch: Also, i noticed if i did the build of the client app before setting the sdk version it worked, without #39148 - but then the build later on for server that references client would still have the issue.
Will also indicate the System.Text.Json is not found.
|
I have the same problem/error, I don't understand the workaround? Can you explain how you got it to work? |
You can see the first branch here that has the issue, and the commit that fixes it. |
Unfortunately I don't use Azure Pipelines, but an Dockerfile to build an image with the dotnet application. I only could fix it by upgrading to .NET 8. I don't know if it works with .NET 7 as well, but switching the SDK worked for me. |
/cc: @joj It sounds like this might be resolved in later versions. Can you triage this when you get the chance? |
Describe the bug
Building a .NET 6 App that references a Microsoft.VisualStudio.JavaScript.SDK fails on Azure DevOps and produces an error indicating a missing dependency to System.Text.Json
Note: Deploying through Visual Studio 2022 Publish works as expected to Azure Resource.
To Reproduce
A simple project created following the guide here, https://learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-vue?view=vs-2022
https://github.com/jonmeyerson/Microsoft.VisualStudio.JavaScript.Sdk-AzureDeploy
Exceptions (if any)
`Build FAILED.
Further technical details
.NET SDK 6.0.419
Microsoft.VisualStudio.JavaScript.Sdk/1.0.586930
dev.azure.com - Azure Devops ( Version Dev19.M234.1 (AzureDevOps_M234_20240228.4) )
The text was updated successfully, but these errors were encountered: