Skip to content

Conversation

@dibarbet
Copy link
Member

Fixes signed build failures

We were unconditionally setting DOTNET_HOST_PATH to the local .dotnet folder, but if a globally installed SDK is found the local SDK may not exist.

C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : It was not possible to find any compatible framework version [D:\a\_work\1\s\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj::TargetFramework=net9.0]
##[error]C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) It was not possible to find any compatible framework version
C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : The framework 'Microsoft.NETCore.App', version '10.0.0-rc.2.25502.107' was not found. [D:\a\_work\1\s\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj::TargetFramework=net9.0]
##[error]C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) The framework 'Microsoft.NETCore.App', version '10.0.0-rc.2.25502.107' was not found.
C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :   - The following frameworks were found: [D:\a\_work\1\s\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj::TargetFramework=net9.0]
##[error]C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build)   - The following frameworks were found:
C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :       3.1.28 at [D:\a\_work\1\s\.dotnet\shared\Microsoft.NETCore.App] [D:\a\_work\1\s\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj::TargetFramework=net9.0]
##[error]C:\ToolCache\dotnet\sdk\10.0.100-rc.2.25502.107\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build)       3.1.28 at [D:\a\_work\1\s\.dotnet\shared\Microsoft.NETCore.App]

@dibarbet dibarbet requested a review from a team as a code owner October 21, 2025 22:32
@dibarbet dibarbet force-pushed the dev/dibarbet/fix_official branch from 1680893 to 28de057 Compare October 21, 2025 23:18
@dibarbet dibarbet force-pushed the dev/dibarbet/fix_official branch from 28de057 to cf644c2 Compare October 21, 2025 23:20
@dibarbet
Copy link
Member Author

@dibarbet dibarbet merged commit e9cfa84 into dotnet:main Oct 22, 2025
28 checks passed
@dibarbet dibarbet deleted the dev/dibarbet/fix_official branch October 22, 2025 00:46
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 22, 2025
333fred added a commit to 333fred/roslyn that referenced this pull request Oct 22, 2025
* upstream/main: (123 commits)
  Fix SafeContext of Span-valued collection expressions to match specification (dotnet#80684)
  Improve detection of invalid references for implicitly typed expression variables declared within implicit object creation expressions. (dotnet#80546)
  Add test demonstrating behavior of ToMinimalDisplayString. (dotnet#80757)
  Only set DOTNET_HOST_PATH if something was installed (dotnet#80842)
  Clean up a Razor external access service (dotnet#80830)
  Remove unused statement (dotnet#80823)
  Allow foreach on typed null enumerables (dotnet#80783)
  Update documentation for DeclaringSyntaxReferences and Locations to clarify partial members behavior (dotnet#80704)
  Fix issue converting an auto prop to a full prop when 'field' and 'initializers' are involved
  Rename childIsSimple to innerExpressionHasPrimaryPrecedence and add more test cases
  Remove placeholder WorkItem attributes from new tests
  Fix RemoveUnnecessaryParentheses to detect simple expressions in bitwise operations
  [main] Update dependencies from dotnet/arcade (dotnet#80828)
  Fix ITypeSymbol.BaseType documentation for type parameters (dotnet#80770)
  soft-select select camelcase matched item if user might be typing an undefined type parameter (dotnet#80809)
  Allow semantic tokens in Razor to be better behaved (dotnet#80815)
  Rebase
  Remove using
  Update test
  Add fix all test
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants