Skip to content

fix(dotnet): stop inferring publish and run on test projects - #37511

Draft
AgentEnder wants to merge 1 commit into
masterfrom
fix/dotnet-test-projects-no-publish-run
Draft

AgentEnder wants to merge 1 commit into
masterfrom
fix/dotnet-test-projects-no-publish-run

Conversation

@AgentEnder

Copy link
Copy Markdown
Member

Current Behavior

We infer publish and run for any project with OutputType=Exe. Test projects evaluate to Exe (Microsoft.NET.Test.Sdk sets it on .NET Core, and MTP runners set it themselves), so every test project gets publish and run targets.

Expected Behavior

Test projects don't get publish or run.

Related Issue(s)

Part of NXC-5119

Test projects evaluate to OutputType=Exe because Microsoft.NET.Test.Sdk
sets it on .NET Core and MTP runners set it themselves, so every test
project got publish and run targets. Gate both on the project not being
a test project, and drop the unused isTest parameter from
AddPublishTarget.

Part of NXC-5119
@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 33916a7
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6ad784940f2f118e5c71d674
😎 Deploy Preview https://deploy-preview-37511--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 33916a7
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6ad784949e5f7100cb86e100
😎 Deploy Preview https://deploy-preview-37511--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 33916a7

Command Status Duration Result
nx affected --targets=lint,oxlint,test,build,e2... ❌ Failed 31m 21s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 1s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 35s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 27s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-10-20 15:46:23 UTC

This branch has not been deployed

No deployments
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.

1 participant