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

Empty file generated? #278

Open
cchance27 opened this issue Feb 11, 2024 · 0 comments
Open

Empty file generated? #278

cchance27 opened this issue Feb 11, 2024 · 0 comments

Comments

@cchance27
Copy link

cchance27 commented Feb 11, 2024

For some reason... my .net 8.0 with 1.6.3 Reinforced.Typings is not generating the types... jsut a file with a comment

[Reinforced.Typings.Attributes.TsInterface]
public struct ApAvailableSpace
{
    public string Name { get; init; }
    public string Tower { get; init; }
    public string Azimuth { get; init; }
    public int ColorCode { get; init; }
    public string Type { get; init; }
    public int SMs { get; init; }
    public float Frequency { get; init; }
}

Results in a file that just has a comment that it was generated by Reinforced.Typings...

the config is just

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<PropertyGroup>
		<RtExportPureTypings>true</RtExportPureTypings>
		<RtConfigurationMethod></RtConfigurationMethod>
		<RtDivideTypesAmongFiles>true</RtDivideTypesAmongFiles>
		<RtTargetDirectory>$(ProjectDir)sveltekit\types</RtTargetDirectory>
		<RtBypassTypeScriptCompilation>false</RtBypassTypeScriptCompilation>	
		<RtDisable>false</RtDisable>
		<RtSuppress></RtSuppress>
	</PropertyGroup>
</Project>

Edit: I think i figured out the issue, The file wasn't namespaced, the file was getting generated ... if i change the tag to [Reinforced.Typings.Attributes.TsClass(IncludeNamespace = false)] or add a namespace to the class then it works and exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant