Work-around dotnet bug

The include must be duplicated because the root `buildOptions` is not
being applied "whenever compiling the project."
This commit is contained in:
Andrew Schwartzmeyer 2016-06-14 16:05:54 -07:00
parent 01f1c5348d
commit d16cfbd04f
4 changed files with 30 additions and 17 deletions

View file

@ -5,10 +5,7 @@
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"allowUnsafe": true, "allowUnsafe": true
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ]
}
}, },
"dependencies": { "dependencies": {
@ -21,6 +18,7 @@
"buildOptions": { "buildOptions": {
"define": [ "CORECLR" ], "define": [ "CORECLR" ],
"compile": { "compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ],
"exclude": [ "exclude": [
"commands/management/ClearRecycleBinCommand.cs", "commands/management/ClearRecycleBinCommand.cs",
"commands/management/CommitTransactionCommand.cs", "commands/management/CommitTransactionCommand.cs",
@ -50,6 +48,11 @@
} }
}, },
"net451": { "net451": {
"buildOptions": {
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ]
}
},
"frameworkAssemblies": { "frameworkAssemblies": {
"System.ServiceProcess": "", "System.ServiceProcess": "",
"System.Windows.Forms": "", "System.Windows.Forms": "",
@ -57,7 +60,7 @@
"System.Web.Services": "" "System.Web.Services": ""
}, },
"dependencies": { "dependencies": {
"Microsoft.WSMan.Management": "1.0.0" "Microsoft.WSMan.Management": "1.0.0"
} }
} }
} }

View file

@ -5,10 +5,7 @@
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"allowUnsafe": true, "allowUnsafe": true
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ]
}
}, },
"dependencies": { "dependencies": {
@ -20,6 +17,7 @@
"buildOptions": { "buildOptions": {
"define": [ "CORECLR" ], "define": [ "CORECLR" ],
"compile": { "compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ],
"exclude": [ "exclude": [
"commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs", "commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs",
"commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs", "commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs",
@ -67,6 +65,11 @@
} }
}, },
"net451": { "net451": {
"buildOptions": {
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ]
}
},
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Drawing": "", "System.Drawing": "",
"System.Web": "", "System.Web": "",

View file

@ -5,10 +5,7 @@
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"allowUnsafe": true, "allowUnsafe": true
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ]
}
}, },
"dependencies": { "dependencies": {
@ -21,6 +18,7 @@
"buildOptions": { "buildOptions": {
"define": [ "CORECLR" ], "define": [ "CORECLR" ],
"compile": { "compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ],
"exclude": [ "exclude": [
"security/CertificateCommands.cs", "security/CertificateCommands.cs",
"security/CmsCommands.cs", "security/CmsCommands.cs",
@ -30,6 +28,11 @@
} }
}, },
"net451": { "net451": {
"buildOptions": {
"compile": {
"include": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ]
}
}
} }
} }
} }

View file

@ -5,10 +5,7 @@
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"allowUnsafe": true, "allowUnsafe": true
"compile": {
"include": [ "../windows-build/gen/System.Management.Automation/*.cs" ]
}
}, },
"configurations": { "configurations": {
@ -29,6 +26,7 @@
"buildOptions": { "buildOptions": {
"define": [ "CORECLR" ], "define": [ "CORECLR" ],
"compile": { "compile": {
"include": [ "../windows-build/gen/System.Management.Automation/*.cs" ],
"exclude": [ "exclude": [
"cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs", "cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs",
"cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs", "cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs",
@ -165,6 +163,12 @@
} }
}, },
"net451": { "net451": {
"buildOptions": {
"compile": {
"include": [ "../windows-build/gen/System.Management.Automation/*.cs" ]
}
},
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Runtime": "", "System.Runtime": "",
"System.Xml": "", "System.Xml": "",