-
-
Notifications
You must be signed in to change notification settings - Fork 221
fix: BuildProperty-Generator and AOT compilation detection #4333
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
705517b
style: remove blank lines
Flash0ver 1bdd47c
fix: Generator emitting source when Application
Flash0ver c3d8dd7
ref: make Generator sealed
Flash0ver 11c91ed
fix: emitted Dictionary uses StringComparer.OrdinalIgnoreCase
Flash0ver 936f1c0
ref: change generated namespace
Flash0ver 9a90070
ref: rename generated type
Flash0ver 72b4c1c
ref: rename HintName
Flash0ver ab6fa45
fix: inconsistent tabs vs spaces
Flash0ver 8b4ccf8
ref: remove file-scoped namespace declaration
Flash0ver c00e25e
ref: ModuleInitializer requires .NET 5.0
Flash0ver 19284af
fix: generated attribute
Flash0ver 20ac323
ref: enable nullable reference types
Flash0ver a6860a9
ref: make generated type and member internal
Flash0ver 6b8e22e
docs: add CHANGELOG entry
Flash0ver 9d644c4
Implemented missing logic for AotHelper + some diagnostics
jamescrosswell 8fbade9
Update CHANGELOG.md
jamescrosswell 5210353
ref: append Attribute-suffix for consistency
Flash0ver 3f6a86f
ref: remove redundant attribute
Flash0ver 0344f17
build: delete Sentry.SourceGenerators.targets
Flash0ver 560823f
ref: delete redundant string interpolation
Flash0ver 45dd854
Merge branch 'main' into fix/source-generator
jamescrosswell 9c8451d
Update CHANGELOG.md
jamescrosswell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Sentry.SourceGenerators; | ||
|
||
internal static class GeneratedCodeText | ||
{ | ||
public static string? Tool { get; } = typeof(BuildPropertySourceGenerator).Assembly.GetName().Name; | ||
public static string? Version { get; } = typeof(BuildPropertySourceGenerator).Assembly.GetName().Version?.ToString(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Sentry.SourceGenerators; | ||
|
||
internal static class OutputKindExtensions | ||
{ | ||
internal static bool IsExe(this OutputKind outputKind) | ||
{ | ||
return outputKind switch | ||
{ | ||
OutputKind.ConsoleApplication => true, | ||
OutputKind.WindowsApplication => true, | ||
OutputKind.DynamicallyLinkedLibrary => false, | ||
OutputKind.NetModule => false, | ||
OutputKind.WindowsRuntimeMetadata => false, | ||
OutputKind.WindowsRuntimeApplication => true, | ||
_ => false, | ||
}; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.