-
Notifications
You must be signed in to change notification settings - Fork 173
Include AssemblyCommon.props into new SDK projects by default #979
Include AssemblyCommon.props into new SDK projects by default #979
Conversation
Hmm, I thought the LanguageServer and Compiler projects already had StyleCop enabled in main (see #513), so there shouldn't be any warnings. Are they using the same StyleCop settings as the other projects? |
Thank you for noticing it, and sorry for not checking it more thoroughly. Not sure why I was getting warnings about it before (possible some intermediate result got cached or due to other warnings I had) after enabling it back now I don't see those warnings. |
…dreyTretyak/qsharp-compiler into andreyt/simplify-common-props
|
@SamarSha I've removed unneeded StyleCop suppression. Could you please have a look once more? |
bamarsha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AndreyTretyak, really sorry for not reviewing this earlier. It looks great, I just had a couple questions. Thanks!
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Not a problem at all, I totally understand that this work goes in addition to your regular workload planning. Thank you for the review. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
bamarsha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I am happy about reducing some of the build system boilerplate. :) The signed build also passed. Thanks for the contribution!
Follow-up after #931
This change replaces manual import of
AssemblyCommon.propsfile with automatic (using Directory.Build.props), so it would be automatically included in every SDK-based project in thesrcfolder, so it's harder to forget it.Directory.Build.propsalso allows defining properties for both SDK and non-SDK projects, so I would suggest using it in the future instead ofAssemblyCommon.cs.v.template(it might require some changes in build the logic that provides#ASSEMBLY_VERSION#).An additional change in this PR is a move of
InternalsVisibleToattributes into project files directly. This allows using same approach for both C# and F# projects and replaces two helper files with public key to have a single place for it.Some of the projects (LanguageServerandCompiler) have a lot of StyleCop warnings that would fail build, so I've disabled StyleCop for them (same as it was before), to avoid making PR too big. Also, StyleCop disabled forParserproject since it looks like code in it autogenerated.This change treats warnings as errors, so I had to silence some warnings for
Parserproject, since the code in it autogenerated.