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

Unable to format when using if directives that contain the end of statements #121

Closed
belav opened this issue Apr 19, 2021 · 1 comment
Closed
Assignees

Comments

@belav
Copy link
Owner

belav commented Apr 19, 2021

The file at [csharpier-repos]\efcore\test\Microsoft.Data.Sqlite.Tests\TestUtilities\SqliteTestFramework.cs
Contains the following code.
The end bracket for an attribute is inside of an if directive. Currently the way csharpier uses roslyn, it can't parse this file.

The solution to this is probably related to #15

[assembly: TestFramework(
    "Microsoft.Data.Sqlite.Tests.TestUtilities.SqliteTestFramework",
#if E_SQLITE3
    "Microsoft.Data.Sqlite.Tests")]
#elif E_SQLCIPHER
    "Microsoft.Data.Sqlite.e_sqlcipher.Tests")]
#elif WINSQLITE3
    "Microsoft.Data.Sqlite.winsqlite3.Tests")]
#elif SQLITE3
    "Microsoft.Data.Sqlite.sqlite3.Tests")]
#else
#error Unexpected native library
#endif

When we fix this, remove this file from the ignore list for csharpier-repos

@belav
Copy link
Owner Author

belav commented Dec 26, 2023

closing for lack of interest

@belav belav closed this as completed Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant