We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using init accessors or primary constructors on records inside a custom (*.nt.cs) function
init
public class Sum { public int X { get; init; } public int Y { get; init; } }
Or
public record Sum(int X, int Y)
Gives the following error
error CS0518: Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported
To fix the error you need to add the following code inside the custom function.
namespace System.Runtime.CompilerServices { [EditorBrowsable(EditorBrowsableState.Never)] internal static class IsExternalInit { } }
It would be great if this can be added automatically by the Visual Studio extension itself.
The text was updated successfully, but these errors were encountered:
We will see about that, officially only .net standard 2.0 and C# 7.3 are supported in the custom function.
Sorry, something went wrong.
No branches or pull requests
When using
init
accessors or primary constructors on records inside a custom (*.nt.cs) functionOr
Gives the following error
To fix the error you need to add the following code inside the custom function.
It would be great if this can be added automatically by the Visual Studio extension itself.
The text was updated successfully, but these errors were encountered: