Skip to content

Conversation

@balefrost
Copy link
Contributor

Fixes #141

I only have VS2015 on my computer, and I ran into a few difficulties:

  1. Needed to add C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64 to PeVerifyProbingPaths to avoid test failures.
  2. VS wanted to migrate app.config values to Settings.Settings. That is, VS removed the <userSettings> element from app.config completely; instead, it inlines that value into the Settings.settings and Settings.Designer.cs files (duplicated in both places). I'm not sure how user settings were handled in previous versions of Visual Studio, but I guess it now wants to bake the default values into the DLLs.
  3. Couldn't build the SL40 or SL50 configurations from Visual Studio, either in Castle.Core.sln or Castle.Core-SL.sln. Was able to build and run tests from the command-line. Didn't investigate this too much, but I'm guessing that the command-line build does things slightly differently from the VS build.
  4. Was not able to test on Mono. I would appreciate if somebody with an established Mono environment would run the unit tests.

@jonorossi jonorossi added this to the v4.0 milestone Mar 9, 2016
@jonorossi
Copy link
Member

Thanks @balefrost.

  1. We've just recently added (248d925) the v10.0 directory to the peverify probing paths in the netcore branch. I also got rid of the .settings file and just made it hardcoded also in the netcore branch so let's just wait until that branch merged back.
  2. One of the reasons I dislike those generated .settings files because of this sort of tooling pain, as per the first item I've got rid of it all in the netcore branch.
  3. Don't worry about Silverlight, it is on the chopping block for v4. Yep, there are differences because the VS tooling is painful.
  4. I've set up your PR on our build server: http://builds.castleproject.org/project.html?projectId=CorePr149

Two unit tests failed on Mono. The unit test that was ignored with "Expected: False But was: True" as the reason is still working different on Mono, and now that the default value setting code is gone the other unit test that threw on Mono now does the same. Can you restore the ignores for both tests with the expected false but true reason. Thanks.

This change actually completely removes the codepath that would set the
default parameters for methods on the proxy implementation class. That
codepath was .NET 4.5 only, but it seems that
System.Reflection.Emit.ParameterBuilder doesn't handle this case
particularly well.
@balefrost
Copy link
Contributor Author

Sorry for the delay; I've been a bit busy.

I put the #if __MonoCS__ check back. It looks like everything builds on the build server.

jonorossi added a commit that referenced this pull request Mar 22, 2016
Fix for optional, nullable enum method parameters
@jonorossi jonorossi merged commit 4c1dcb2 into castleproject:master Mar 22, 2016
@jonorossi
Copy link
Member

Thanks

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