Conversation
|
I added the new project to the solution via I don't know what this means, but I guess I might need to try again to add the project from Visual Studio. @jaredpar |
It just means that the GUID used in the SLN file is incorrect. The line which declares the project , and likely the subsetquent consupmions, use the wrong GUID. |
| <OutputType>Library</OutputType> | ||
| <TargetFrameworks>netcoreapp3.1;netstandard2.0</TargetFrameworks> | ||
| <PlatformTarget>AnyCPU</PlatformTarget> | ||
| <Nullable>enable</Nullable> |
There was a problem hiding this comment.
Is this needed? Think it should just come from the Directory.Build.props file
There was a problem hiding this comment.
BuildValidator also does this. I'll remove both entries in a subsequent PR.
| /// An abstraction for building from a MetadataReaderProvider | ||
| /// </summary> | ||
| internal class BuildConstructor | ||
| public class BuildConstructor |
There was a problem hiding this comment.
public [](start = 4, length = 6)
Should the types in this assembly be kept as internal with InternalsVisibleTo() access added for BuildValidator?
There was a problem hiding this comment.
We do intend for external users to be able to consume this library. I want to punt on the decision of which members to reduce to internal accessibility until we get closer to the point where the public API is ready for review.
There was a problem hiding this comment.
We do intend for external users to be able to consume this library.
If these types will be public, we should also review the namespace names when the public API is reviewed.
In reply to: 589681272 [](ancestors = 589681272)
| /// An abstraction for building from a MetadataReaderProvider | ||
| /// </summary> | ||
| internal class BuildConstructor | ||
| public class BuildConstructor |
There was a problem hiding this comment.
class [](start = 11, length = 5)
sealed
There was a problem hiding this comment.
Will address in follow-up.
| } | ||
|
|
||
| internal class CompilationOptionsReader | ||
| public class CompilationOptionsReader |
There was a problem hiding this comment.
class [](start = 11, length = 5)
sealed
There was a problem hiding this comment.
Will address in follow-up.
| var methodSymbols = typeSymbol | ||
| .GetMembers(mainMethodName) | ||
| .OfType<IMethodSymbol>(); | ||
| return methodSymbols.FirstOrDefault(); |
There was a problem hiding this comment.
FirstOrDefault [](start = 45, length = 14)
Do we need to handle the case where there are multiple "Main" methods in the type? Could we simply use producedCompilation.GetEntryPoint() instead (and avoid looking at optionsReader as well)?
There was a problem hiding this comment.
I'm interested in looking more closely at this, as I believe it is buggy, however in this PR I will just migrate this as-is.
| var parseResult = JsonConvert.DeserializeAnonymousType(Encoding.UTF8.GetString(sourceLinkUTF8), new { documents = (Dictionary<string, string>?)null }); | ||
| var sourceLinks = parseResult.documents.Select(makeSourceLink).ToImmutableArray(); | ||
|
|
||
| if (sourceLinks.IsDefault) |
There was a problem hiding this comment.
sourceLinks.IsDefault [](start = 16, length = 21)
Does ToImmutableArray() ever return default?
No description provided.