Skip to content

We build for NetMinimum when not in source build so target that #9045

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

marcpopMSFT
Copy link
Member

@marcpopMSFT marcpopMSFT commented May 19, 2025

@marcpopMSFT marcpopMSFT requested a review from a team as a code owner May 19, 2025 22:56
@@ -128,7 +128,7 @@ extends:
displayName: Install latest daily .NET version

- bash: >
$(Build.SourcesDirectory)/.dotnet/dotnet $(Build.SourcesDirectory)/artifacts/bin/Microsoft.TemplateSearch.TemplateDiscovery/Debug/net10.0/Microsoft.TemplateSearch.TemplateDiscovery.dll --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
$(Build.SourcesDirectory)/.dotnet/dotnet $(Build.SourcesDirectory)/artifacts/bin/Microsoft.TemplateSearch.TemplateDiscovery/Debug/net8.0/Microsoft.TemplateSearch.TemplateDiscovery.dll --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
Copy link
Member

@ViktorHofer ViktorHofer May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. I see a few low cost solutions to avoid the hard coded TFM:

  • Use dotnet run to build and run the application without supplying a TFM value (my preferred solution)
  • Set AppendTargetFrameworkToOutputPath false in the project. Feels hacky to me.

@marcpopMSFT
Copy link
Member Author

Let me get this merged to unblock the pipeline and then I'll explore options for making it more resilient in the future.

@marcpopMSFT marcpopMSFT enabled auto-merge May 21, 2025 18:59
@marcpopMSFT marcpopMSFT merged commit 5c86301 into main May 21, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants