Skip to content

Empty file generated? #278

@cchance27

Description

@cchance27

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions