Use dotnet msbuild to determine the value of the OutputType property. This fixes an issue where deploying .NET 8 Native AOT Web Apps fails because of a check that looks for the OutputType property explicitly in the .csproj. In .NET8, web apps now inherit the OutputType property from the SDK.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: DOTNET-7400
Description of changes:
dotnet msbuild
to determine the value of theOutputType
property. This fixes an issue where deploying .NET 8 Native AOT Web Apps fails because of a check that looks for theOutputType
property explicitly in the .csproj. In .NET8, web apps now inherit theOutputType
property from the SDK.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.