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

[cs] assembly strict/meta support #8347

Closed
lublak opened this issue May 29, 2019 · 5 comments · Fixed by #11551
Closed

[cs] assembly strict/meta support #8347

lublak opened this issue May 29, 2019 · 5 comments · Fixed by #11551
Labels
platform-cs Everything related to c#
Milestone

Comments

@lublak
Copy link
Contributor

lublak commented May 29, 2019

Haxe supports: @:strict and @:meta

Is there any support for @:assemblyStrict and @:assemblyMeta?

"assembly annotations" needs to be over the namespace.

[assembly: ...]

... = the same content as @:strict and @:meta

@RealyUniqueName
Copy link
Member

Doesn't @:meta("assembly: ...") already work?

@RealyUniqueName RealyUniqueName added the platform-cs Everything related to c# label May 29, 2019
@lublak
Copy link
Contributor Author

lublak commented May 29, 2019

@RealyUniqueName no because @:meta build it into the namespace:
Also strict is impossible

namespace a.package.of.haxe {
	[assembly: ...]

"assembly annotations" needs to be over the namespace.

[assembly: ...]
namespace a.package.of.haxe {

a hacky solution

create a file without package and add keep (it's create a extra c# class, so its very ugly)

@:meta('assembly: System.Reflection.AssemblyVersionAttribute("0.0.1")')
@:keep class VersionInfo {}

@RealyUniqueName RealyUniqueName added this to the Backlog milestone May 29, 2019
@RealyUniqueName
Copy link
Member

Lookuing at C# generator I cannot find anything related. Most likely it's a new feature to implment.

@kLabz
Copy link
Contributor

kLabz commented Jun 1, 2019

Working on this! (still need to find more information about @:strict and @:assemblyStrict)

@lublak
Copy link
Contributor Author

lublak commented Jun 2, 2019

@kLabz nice 👍 what information do you need about @:strict?
In #3954 it was added to haxe.

@Simn Simn modified the milestones: Backlog, Later Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-cs Everything related to c#
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants