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

Fix -a flag and extend token lists #7

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

BrianBohe
Copy link
Contributor

  • Set -a to match assembly names and ilproj filenames without extensions. Seems reasonable to fail if TestProjectAlias is null as it would be unmasking a problem getting the ilproj filename without extensions.
  • Extends special token and typedef token list based on what is needed for tests under JIT/jit64.

@BrianBohe BrianBohe force-pushed the fix-a_and_extensions branch from a987690 to 803b577 Compare February 22, 2023 07:08
@markples markples changed the title Fix -a falg and extend token lists Fix -a flag and extend token lists Feb 22, 2023
@@ -556,7 +556,7 @@ private void RewriteFile(string source)
}
}
int identEnd = charIndex;
string sourceName = Path.GetFileNameWithoutExtension(source);
TestProject.GetKeyNameRootNameAndSuffix(_testProject.TestProjectAlias, out _, out string sourceName, out _);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might need to be RelativePath and not TestProjectAlias. The latter has already had GetFileNameWithoutExtension run on it, so with something like a.b.csproj, this would pull out a "second extension".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@markples markples merged commit cefdaff into markples:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants