Skip to content
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

[BUG] nx-dotnet / msbuild explodes links to dist/intermediates within project folder #836

Open
jvskriubakken opened this issue Mar 5, 2024 · 1 comment
Labels
bug Something isn't working needs-triage This issue has yet to be looked over by a core team member

Comments

@jvskriubakken
Copy link

Current Behavior

After running build, nx-dotnet/msbuild explodes links to dist/intermediates within project folder.

Screenshot 2024-03-05 at 08 57 06

Expected Behavior

That they are located within (probject-folder)/obj

Github Repo

https://github.com/airmontgit/nx-dotnet

Steps to Reproduce

  1. nx run-many -t build

Nx Report

Node   : 18.17.1
OS     : darwin-arm64
yarn   : 1.22.19

nx (global)        : 18.0.6
nx                 : 18.0.6
@nx/js             : 18.0.6
@nx/jest           : 18.0.6
@nx/linter         : 18.0.6
@nx/eslint         : 18.0.6
@nx/workspace      : 18.0.6
@nx/cypress        : 18.0.6
@nx/devkit         : 18.0.6
@nx/eslint-plugin  : 18.0.6
@nx/react          : 18.0.6
@nx/storybook      : 18.0.6
@nrwl/tao          : 18.0.6
@nx/web            : 18.0.6
@nx/webpack        : 18.0.6
typescript         : 5.3.3
---------------------------------------
Community plugins:
@nx-dotnet/core : 2.2.0

nx.json

{
  "$schema": "./node_modules/nx/schemas/nx-schema.json",
  "namedInputs": {
    "default": [
      "{projectRoot}/**/*",
      "sharedGlobals"
    ],
    "production": [
      "default",
      "!{projectRoot}/.eslintrc.json",
      "!{projectRoot}/eslint.config.js",
      "!{projectRoot}/cypress/**/*",
      "!{projectRoot}/**/*.cy.[jt]s?(x)",
      "!{projectRoot}/cypress.config.[jt]s",
      "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
      "!{projectRoot}/tsconfig.spec.json",
      "!{projectRoot}/jest.config.[jt]s",
      "!{projectRoot}/src/test-setup.[jt]s",
      "!{projectRoot}/test-setup.[jt]s"
    ],
    "sharedGlobals": []
  },
  "plugins": [
    {
      "plugin": "@nx/webpack/plugin",
      "options": {
        "buildTargetName": "build",
        "serveTargetName": "serve",
        "previewTargetName": "preview"
      }
    },
    {
      "plugin": "@nx/eslint/plugin",
      "options": {
        "targetName": "lint"
      }
    },
    {
      "plugin": "@nx/cypress/plugin",
      "options": {
        "targetName": "e2e",
        "componentTestingTargetName": "component-test"
      }
    },
    {
      "plugin": "@nx/jest/plugin",
      "options": {
        "targetName": "test"
      }
    },
    {
      "plugin": "@nx/storybook/plugin",
      "options": {
        "buildStorybookTargetName": "build-storybook",
        "serveStorybookTargetName": "storybook",
        "testStorybookTargetName": "test-storybook",
        "staticStorybookTargetName": "static-storybook"
      }
    },
    "@nx-dotnet/core"
  ],
  "generators": {
    "@nx/react": {
      "application": {
        "babel": true,
        "style": "styled-components",
        "linter": "eslint",
        "bundler": "webpack"
      },
      "component": {
        "style": "styled-components"
      },
      "library": {
        "style": "styled-components",
        "linter": "eslint",
        "unitTestRunner": "jest"
      }
    },
    "@nx-dotnet/core:application": {
      "solutionFile": true
    },
    "@nx-dotnet/core:library": {
      "solutionFile": "nxDotnet.sln"
    }
  }
}

Failure Logs

No response

Additional Information

No response

@jvskriubakken jvskriubakken added bug Something isn't working needs-triage This issue has yet to be looked over by a core team member labels Mar 5, 2024
@jvskriubakken
Copy link
Author

After some thought, this is probably not a problem with nx-dotnet, but rather something weird happening with Jetbrains Rider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue has yet to be looked over by a core team member
Projects
None yet
Development

No branches or pull requests

1 participant