Mixedrealitytoolkit-unity: MRTK vNext has build breaks when using "warnings as errors" (-warnaserror+)

Created on 14 May 2019  路  2Comments  路  Source: microsoft/MixedRealityToolkit-Unity

(Ported to GitHub, reference 20029618)

Production apps typically build with "warnings as errors" (the -warnaserror+ compiler option). To enable it, add an "Assets\csc.rsp" file to MRTK and include "-warnaserror+". Try to build MRTK vNext and you'll hit build breaks.

I fixed the build breaks I could and added TODOs to fix the remaining ones where the fix was non-obvious to me. See the "Links" in this bug for commit info.

To prevent breaks from creeping back in, MRTK will need to keep "-warningsaserror+" in its csc.rsp file.

0 - Backlog Bug Urgency-Soon

All 2 comments

We need to keep our code warning and error clean, lest we break other projects that treat warnings as errors.

I think the issues that this was originally for have been resolved - we can open new issues for specific ones when we encounter them in the future. There's not really a point to keep this around as a catch-all

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephenHodgson picture StephenHodgson  路  3Comments

reillydonovan picture reillydonovan  路  3Comments

rigma picture rigma  路  3Comments

StephenHodgson picture StephenHodgson  路  3Comments

provencher picture provencher  路  3Comments