Skip to content

Allow missing CommandLineArgsForDesignTimeEvaluation msbuild property#66367

Merged
tmat merged 3 commits intodotnet:mainfrom
tmat:AllowMissingCommandLineArgsForDesignTimeEvaluation
Jan 19, 2023
Merged

Allow missing CommandLineArgsForDesignTimeEvaluation msbuild property#66367
tmat merged 3 commits intodotnet:mainfrom
tmat:AllowMissingCommandLineArgsForDesignTimeEvaluation

Conversation

@tmat
Copy link
Member

@tmat tmat commented Jan 12, 2023

The property was introduced in 17.4 by 6238d10

If compiler targets are loaded from SDK without this property set we fail to load the project.

Fixes regression introduced in 17.5 that caused projects that did not have this property set to fail to load.

@tmat tmat requested a review from a team as a code owner January 12, 2023 01:33
@ghost ghost added the Area-IDE label Jan 12, 2023
@tmat
Copy link
Member Author

tmat commented Jan 12, 2023

@jasonmalinowski @jmarolf PTAL

@tmat
Copy link
Member Author

tmat commented Jan 17, 2023

@jasonmalinowski ping

project.StartBatch();

if (commandLineArgs != null)
if (!string.IsNullOrEmpty(commandLineArgs))
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 If you use RoslynString, you can omit the subsequent !

@tmat tmat merged commit d39787a into dotnet:main Jan 19, 2023
@tmat tmat deleted the AllowMissingCommandLineArgsForDesignTimeEvaluation branch January 19, 2023 23:04
@ghost ghost added this to the Next milestone Jan 19, 2023
@drewnoakes
Copy link
Member

@tmat will this make 17.5?

@sharwell
Copy link
Contributor

@drewnoakes This is currently in a 17.6 branch. It would need to be backported to make a 17.5 release.

@drewnoakes
Copy link
Member

Given the regression is in 17.5, that is worth considering.

@Cosifne Cosifne modified the milestones: Next, 17.6 P1 Jan 31, 2023
@CZEMacLeod
Copy link

@Cosifne @sharwell Did this make it into the 17.5 release I've been seeing release videos about, or do I need to hold off upgrading VS for however many months it is until you release 17.6?

@jasonmalinowski
Copy link
Member

It appears we did forget to backport this to 17.5. We're starting that conversation internally now.

tmat added a commit to tmat/roslyn that referenced this pull request Feb 22, 2023
…dotnet#66367)

* Allow missing CommandLineArgsForDesignTimeEvaluation msbuild property

* Feedback

* Unused using
arunchndr pushed a commit that referenced this pull request Feb 22, 2023
…ignTimeEvaluation17.5

Port to 17.5: Allow missing CommandLineArgsForDesignTimeEvaluation msbuild property (#66367)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants