csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

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

Open belav opened this issue 4 years ago • 0 comments

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 avatar Apr 19 '21 18:04 belav