Comments (6)
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.
👍
Also could you provide some documentation on this in the readme?
Sure.
from csharpcompilersettingsforunity.
@KuraiAndras
The asmdef files under the Packages
directory are excluded by default.
(Prefix !
means "should be excluded.")
Solution 1:
- Project Settings > C# Compiler > Compiler > Included Assemblies
- Set
Packages/your_package_name/
instead of!Packages/
- e.g.
Packages/com.bim.visualizer.shared/
- e.g.
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.
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.
I'll try this and get back to you soon
from csharpcompilersettingsforunity.
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)
- Not working on Windows HOT 6
- NOTE: Do not use the obsolete tags and branches to reference the package
- Support 2021.1 HOT 8
- How to access privates & internals of Unity? HOT 2
- Support C# 9 Source Generators HOT 5
- Can not install compiler HOT 1
- Compiler show error on Unity Editor for Windows
- Cannot use global using directive.
- Json doesnt have an `id` or `version` to read from
- 2022 Support
- Doesn't work on macOS with big files HOT 3
- [Bug?] Can't get it to work on Unity 2021.3.16f1... HOT 1
- Generated local package csproj does not get updated HOT 3
- Add option for generating nullable property in csproj HOT 9
- Support 2020.2 HOT 12
- Support 2021.1 HOT 1
- Support all nullable settings HOT 1
- Support Roslyn analyzer HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharpcompilersettingsforunity.