You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure is compiler error: "'ThisAssembly.Git' is inaccessible due to its protection level"
Although #273 has been closed as the majority of users report that this issue has been resolved, I can still reproduce this error in the case of a non-SDK style app.
Steps to Reproduce
Create a new Console App Net Framework Non-SDK
Add GitInfo 2.3.0
Add Console.WriteLine(ThisAssembly.Git.Commit); to the Program.cs Works fine.
Then upgrade to GitInfo 3.3.3.
Alternatively, use GitInfo 3.3.3 from the beginning and don't upgrade.
Result:
"'ThisAssembly.Git' is inaccessible due to its protection level"
Expected Behavior
Compiler should not show this error
Exception with Stack Trace
NA
Version Info
Clean fresh Visual Studio 2022 Console App, once as non-SDK, once as SDK style
Additional Info
Create a new Console App Net Framework Non-SDK style
Add GitInfo 2.3.0
Add Console.WriteLine(ThisAssembly.Git.Commit); to the Program.cs
Works fine.
Upgrade to GitInfo 3.3.3
Result:
'ThisAssembly.Git' is inaccessible due to its protection level
Go back to GitInfo 2.3.0, works fine again.
Tried the same sequence with a new Console APP, this time using SDK style .csproj, then GitInfo 3.3.3 is OK.
The text was updated successfully, but these errors were encountered:
Describe the Bug
Please see the description of #273
Failure is compiler error: "'ThisAssembly.Git' is inaccessible due to its protection level"
Although #273 has been closed as the majority of users report that this issue has been resolved, I can still reproduce this error in the case of a non-SDK style app.
Steps to Reproduce
Create a new Console App Net Framework Non-SDK
Add GitInfo 2.3.0
Add
Console.WriteLine(ThisAssembly.Git.Commit);
to theProgram.cs
Works fine.
Then upgrade to GitInfo 3.3.3.
Alternatively, use GitInfo 3.3.3 from the beginning and don't upgrade.
Result:
"'ThisAssembly.Git' is inaccessible due to its protection level"
Expected Behavior
Compiler should not show this error
Exception with Stack Trace
NA
Version Info
Clean fresh Visual Studio 2022 Console App, once as non-SDK, once as SDK style
Additional Info
Create a new Console App Net Framework Non-SDK style
Add GitInfo 2.3.0
Add Console.WriteLine(ThisAssembly.Git.Commit); to the Program.cs
Works fine.
Upgrade to GitInfo 3.3.3
Result:
'ThisAssembly.Git' is inaccessible due to its protection level
Go back to GitInfo 2.3.0, works fine again.
Tried the same sequence with a new Console APP, this time using SDK style .csproj, then GitInfo 3.3.3 is OK.
The text was updated successfully, but these errors were encountered: