Skip to content

Move [ClsCompliant(...)] to CommonAssemblyInfo.cs #125

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 1 commit into from
Feb 25, 2016

Conversation

jeremymeng
Copy link
Contributor

@jonorossi

This fixes the failures in clean netcore build. (#123)

@jonorossi
Copy link
Member

  1. When do we need ASSEMBLY_CLSCOMPLIANT_FALSE?
  2. The unit test project also needs to use CommonAssemblyInfo.cs now too
  3. What about the other fields in the assembly info file? Did you just want to do this one for now to get things building?

@jeremymeng
Copy link
Contributor Author

When do we need ASSEMBLY_CLSCOMPLIANT_FALSE?

The original MSBuild logic allows setting [ClsCompliant(false)] so I made configurable too. If there's no need I will remove it and just leave it always true.

The unit test project also needs to use CommonAssemblyInfo.cs now too

[ClrCompliant(true)] would cause many build error for the unit test project. I looked at the non-CoreClr test project and found that it doesn't seem to have either CommonAssemblyInfo.cs or AssemblyInfo.cs. This probably explains why I only see these errors in dnx builds.

image

What about the other fields in the assembly info file? Did you just want to do this one for now to get things building?

Yes. I wanted to unblock the dnx build first.

@jeremymeng
Copy link
Contributor Author

@jonorossi The MSBuild-based unit test project does not include *AssemblyInfo.cs". Can you please suggest what to do for the other two bullet points? Thanks!

@jeremymeng
Copy link
Contributor Author

@jonorossi friendly ping...

@adamralph
Copy link

Is this the last thing that needs doing to complete #90?

@jeremymeng
Copy link
Contributor Author

This PR will allow building a NuGet package that supports .NET Core. There are other things pending, for example, to strongname sign or not, waiting for the dotnet/cli release in RC2, etc. However the main porting is done from my perspective. @jonorossi might have more thoughts.

@adamralph
Copy link

@jeremymeng that's great news. Thanks for the update.

@adamralph adamralph mentioned this pull request Feb 12, 2016
@bob-devereux-zocdoc
Copy link

Any progress on this? Would love to keep using CastleCore and Moq on .Net core.

hammett added a commit that referenced this pull request Feb 25, 2016
Move [ClsCompliant(...)] to CommonAssemblyInfo.cs
@hammett hammett merged commit 2bfed32 into castleproject:netcore Feb 25, 2016
@jonorossi jonorossi added this to the v4.0 milestone Mar 11, 2016
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.

5 participants