Code Monkey home page Code Monkey logo

Comments (6)

mob-sakai avatar mob-sakai commented on May 25, 2024 1

@KuraiAndras

Check name field in bimvisualizer.shared/package.json and bimvisualizer.application/package.json.

For example:

[bimvisualizer.shared/package.json]
{
  "name": "com.bim.visualizer.shared",
  "version": "1.0.0",
  ...
}

and

[bimvisualizer.application/package.json]
{
  "name": "com.bim.visualizer.application",
  "version": "1.0.0",
  ...
}
  • Remove !Packages/
  • Add Packages/com.bim.visualizer.shared
  • Add Packages/com.bim.visualizer.application

Also why is the Packages folder excluded by default?

This is to prevent unintended compiler changes and to minimize the impact of compiler changes.
Packages and store assets should (essentially) be compiled with the default compiler.

from csharpcompilersettingsforunity.

mob-sakai avatar mob-sakai commented on May 25, 2024 1

👍

Also could you provide some documentation on this in the readme?

Sure.

from csharpcompilersettingsforunity.

mob-sakai avatar mob-sakai commented on May 25, 2024

@KuraiAndras
The asmdef files under the Packages directory are excluded by default.
(Prefix ! means "should be excluded.")

image


Solution 1:

  • Project Settings > C# Compiler > Compiler > Included Assemblies
  • Set Packages/your_package_name/ instead of !Packages/
    • e.g. Packages/com.bim.visualizer.shared/

Solution 2:

  • Select the asmdef file under the Packages directory
  • Turn on Enable C# Compiler Settings in inspector
  • Choose the compiler package and the language version
  • Click Apply

from csharpcompilersettingsforunity.

KuraiAndras avatar KuraiAndras commented on May 25, 2024

To be precise, we have multiple projects, and they are not located in the packages folder. The structure is like:

bimvisualizer.shared
    |   bimvisualizer.shared.asmdef
    |   package.json
bimvisualizer.application
    |   bimvisualizer.application.asmdef
    |   package.json
*etc
bimvisualizer.unity
    |   Packages
        | manifest.json
        | package-lock.json
    |   Assets
        |   multiple asmdefs, assets, etc

In this context what does the Packages folder refer to? [UnityProject]/Packages or [UnityProject]/Library/PackageCache or just whatever folder the UPM resolves when reading the mainfest?

Also why is the Packages folder excluded by default?

from csharpcompilersettingsforunity.

KuraiAndras avatar KuraiAndras commented on May 25, 2024

I'll try this and get back to you soon

from csharpcompilersettingsforunity.

KuraiAndras avatar KuraiAndras commented on May 25, 2024

Yupp, the project wors, after including the assemblies like : Packages/package.name.etc .
You can close this now if you want.

Also could you provide some documentation on this in the readme?

from csharpcompilersettingsforunity.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.