Comments (4)
It seems that init
properties are unsupported in this use case too.
I would be happy to submit a PR to change these if it would be accepted. Let me know. :)
from autointerface.
If your condition is just the use of some older framework, I recommend to set the language version to 12 and also include PolySharp:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>12</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoInterface" Version="2.1.0" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />
</ItemGroup>
</Project>
from autointerface.
This is something I considered, but the SDK we're writing is for our Unity frontend and we're reluctant to put things into what is an officially unsupported configuration.
from autointerface.
yeah, Unity is known for being stone age, the target group for Unity are mostly beginner programmers. As experienced programmer it can be pretty rough to work with Unity, especially when it comes to language features and software architecture.
Give it a try. Set the language version to “latest” and see what you get. If you get C#12, Unity uses an up-to-date Roslyn compiler. Then try to compile and try to build a release version, if both works, you are good to go. The possibility of side effects is neglectable. I won’t they, they are impossible, but changing the language version is actually a pretty small and local change. The configuration affects only the compile process from your code to the IL assembly and everything beside that (other assemblies, linking of these assemblies, runtime) will be untouched.
PolySharp is even more harmless. It is just a source generator that creates some polyfill classes.
Regardless of the outcome, I already thought about the problem of language version compatibility. There was the decision between breaking everything down to version C#7.3 or just using the new features. I decided to just use the new features, because changing the language version is not a big deal.
from autointerface.
Related Issues (12)
- Generator does not detect inside-namespace imports HOT 2
- Support for Records HOT 1
- Support for attributes HOT 1
- Support Nested Interfaces HOT 2
- Interfaces from Records don't generate Deconstruct method HOT 1
- Nested Classes can't produce top-level interfaces HOT 2
- Methods with Generics not generating into interface HOT 1
- Declared elements from existing interfaces being duplicated in generated interface HOT 1
- Feature Request: Attribute Filtering HOT 2
- Overwriting Generated Files with Same Name HOT 2
- Inherited class members are not included in generated interface HOT 1
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 autointerface.