Skip to content

Conversation

@dougbu
Copy link
Contributor

@dougbu dougbu commented Aug 9, 2016

nits:

  • add solution for tools
  • ignore .vs directory

@dougbu
Copy link
Contributor Author

dougbu commented Aug 9, 2016

/to @pranavkm

@dougbu dougbu force-pushed the dougbu/licenses.2 branch from 7ded75c to 1a987f8 Compare August 9, 2016 05:08
@dougbu dougbu force-pushed the dougbu/build.w.latest.12 branch from 3c32605 to d1cfceb Compare August 9, 2016 05:09
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a bug fix. Except, we've never seen this fail before - odd that a bug like this would exist because this code hasn't changed in 5+ years.

Please log a bug for this and do it in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it's possible the code analysis has uncovered an actual bug -- FxCop has evolved (slightly) over the years. But it would be worse to suppress the warning than to fix it at this time. Build doesn't succeed w/o this fix using latest tools.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not suggesting suppressing it... I just don't want to mix what appears to be a bug fix with some code cleanup.

@Eilon
Copy link
Contributor

Eilon commented Aug 9, 2016

🕐

dougbu added 3 commits August 9, 2016 16:47
- #12
- find `MSBuild.exe` and `Microsoft.Build.Tasks.*.dll` for v14.0 before v12.0
- avoid errors and warnings the latest compiler detects
- fix test that now hits NRE; unclear how it ever ran successfully

nits:
- add solution for tools
- ignore .vs directory
- suppress MW1201 FxCop rule for `UriExtensions.TryReadQueryAs()` to avoid #16
@dougbu
Copy link
Contributor Author

dougbu commented Aug 10, 2016

🆙📅

This PR no longer addresses #17 nor the consistent ApiControllerTest.Setting_CustomActionSelector() test failure when using recent tooling.

/// <param name="value">An object to be initialized with this instance or null if the conversion cannot be performed.</param>
/// <returns><c>true</c> if the query component can be read as the specified type; otherwise <c>false</c>.</returns>
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate", Justification = "This is the non-generic version.")]
[SuppressMessage("Microsoft.Web.FxCop", "MW1201", Justification = "Avoid an NRE in our custom rule (see AspNetWebStack#16). Occurs while handling JTokenReader.Dispose().")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Yikes 😄

@Eilon
Copy link
Contributor

Eilon commented Aug 10, 2016

:shipit:

1 similar comment
@pranavkm
Copy link
Contributor

:shipit:

@dougbu
Copy link
Contributor Author

dougbu commented Aug 10, 2016

ddf0764

@dougbu dougbu closed this Aug 10, 2016
@dougbu dougbu deleted the dougbu/build.w.latest.12 branch August 10, 2016 19:39
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.

4 participants