Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -26,10 +26,8 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void AnyEventHandler (object sender, BuildEventArgs e);
}
#endif

View File

@@ -31,11 +31,7 @@ using System;
namespace Microsoft.Build.Framework {
[Serializable]
public class BuildErrorEventArgs
#if NET_4_0
: LazyFormattedBuildEventArgs {
#else
: BuildEventArgs {
#endif
string code;
int columnNumber;
@@ -44,9 +40,7 @@ namespace Microsoft.Build.Framework {
string file;
int lineNumber;
string subcategory;
#if NET_4_0
string projectFile;
#endif
protected BuildErrorEventArgs ()
{
@@ -70,7 +64,6 @@ namespace Microsoft.Build.Framework {
this.endColumnNumber = endColumnNumber;
}
#if NET_4_0
public BuildErrorEventArgs (string subcategory, string code,
string file, int lineNumber, int columnNumber,
int endLineNumber, int endColumnNumber, string message,
@@ -97,7 +90,6 @@ namespace Microsoft.Build.Framework {
this.endColumnNumber = endColumnNumber;
}
#endif
public string Code {
get {
@@ -141,12 +133,10 @@ namespace Microsoft.Build.Framework {
}
}
#if NET_4_0
public string ProjectFile {
get { return projectFile; }
set { projectFile = value; }
}
#endif
}
}

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildErrorEventHandler (object sender,
BuildErrorEventArgs e);
}
#endif

View File

@@ -39,9 +39,7 @@ namespace Microsoft.Build.Framework
string senderName;
int threadId;
DateTime timestamp;
#if NET_3_5
BuildEventContext context;
#endif
protected BuildEventArgs ()
: this (null, null, null)
@@ -54,9 +52,7 @@ namespace Microsoft.Build.Framework
{
}
#if NET_4_0
protected
#endif
BuildEventArgs (string message, string helpKeyword,
string senderName, DateTime eventTimestamp)
{
@@ -65,9 +61,7 @@ namespace Microsoft.Build.Framework
this.senderName = senderName;
this.threadId = Thread.CurrentThread.GetHashCode ();
this.timestamp = eventTimestamp;
#if NET_3_5
this.context = BuildEventContext.NewInstance ();
#endif
}
public string HelpKeyword {
@@ -76,18 +70,14 @@ namespace Microsoft.Build.Framework
}
}
#if NET_4_0
virtual
#endif
public string Message {
get {
return message;
}
#if NET_4_0
protected set {
message = value;
}
#endif
}
public string SenderName {
@@ -109,7 +99,6 @@ namespace Microsoft.Build.Framework
}
}
#if NET_3_5
public BuildEventContext BuildEventContext {
get { return context; }
set {
@@ -118,7 +107,6 @@ namespace Microsoft.Build.Framework
context = value;
}
}
#endif
}
}

View File

@@ -46,7 +46,6 @@ namespace Microsoft.Build.Framework {
this.succeeded = succeeded;
}
#if NET_4_0
public BuildFinishedEventArgs (string message,
string helpKeyword,
bool succeeded,
@@ -65,7 +64,6 @@ namespace Microsoft.Build.Framework {
{
this.succeeded = succeeded;
}
#endif
public bool Succeeded {
get {

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildFinishedEventHandler (object sender,
BuildFinishedEventArgs e);
}
#endif

View File

@@ -26,7 +26,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
@@ -57,4 +56,3 @@ namespace Microsoft.Build.Framework {
}
}
#endif

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildMessageEventHandler (object sender,
BuildMessageEventArgs e);
}
#endif

View File

@@ -33,9 +33,7 @@ namespace Microsoft.Build.Framework {
[Serializable]
public class BuildStartedEventArgs : BuildStatusEventArgs {
#if NET_4_0
IDictionary<string, string> buildEnvironment;
#endif
protected BuildStartedEventArgs ()
{
@@ -47,7 +45,6 @@ namespace Microsoft.Build.Framework {
{
}
#if NET_4_0
public BuildStartedEventArgs (string message,
string helpKeyword,
IDictionary<string, string> environmentOfBuild)
@@ -74,7 +71,6 @@ namespace Microsoft.Build.Framework {
public IDictionary<string, string> BuildEnvironment {
get { return buildEnvironment; }
}
#endif
}
}

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildStartedEventHandler (object sender,
BuildStartedEventArgs e);
}
#endif

View File

@@ -32,11 +32,7 @@ namespace Microsoft.Build.Framework
{
[Serializable]
public abstract class BuildStatusEventArgs
#if NET_4_0
: LazyFormattedBuildEventArgs {
#else
: BuildEventArgs {
#endif
protected BuildStatusEventArgs ()
{
@@ -49,7 +45,6 @@ namespace Microsoft.Build.Framework
{
}
#if NET_4_0
protected BuildStatusEventArgs (string message,
string helpKeyword,
string senderName,
@@ -66,7 +61,6 @@ namespace Microsoft.Build.Framework
: base (message, helpKeyword, senderName, eventTimestamp, messageArgs)
{
}
#endif
}
}

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildStatusEventHandler (object sender,
BuildStatusEventArgs e);
}
#endif

View File

@@ -31,11 +31,7 @@ using System;
namespace Microsoft.Build.Framework {
[Serializable]
public class BuildWarningEventArgs
#if NET_4_0
: LazyFormattedBuildEventArgs {
#else
: BuildEventArgs {
#endif
string subcategory;
string code;
@@ -44,9 +40,7 @@ namespace Microsoft.Build.Framework {
int columnNumber;
int endLineNumber;
int endColumnNumber;
#if NET_4_0
string projectFile;
#endif
protected BuildWarningEventArgs ()
{
@@ -71,7 +65,6 @@ namespace Microsoft.Build.Framework {
this.endColumnNumber = endColumnNumber;
}
#if NET_4_0
public BuildWarningEventArgs (string subcategory, string code,
string file, int lineNumber, int columnNumber,
int endLineNumber, int endColumnNumber, string message,
@@ -98,7 +91,6 @@ namespace Microsoft.Build.Framework {
this.endColumnNumber = endColumnNumber;
}
#endif
public string Code {
get {
@@ -142,11 +134,9 @@ namespace Microsoft.Build.Framework {
}
}
#if NET_4_0
public string ProjectFile {
get { return projectFile; }
set { projectFile = value; }
}
#endif
}
}

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void BuildWarningEventHandler (object sender,
BuildWarningEventArgs e);
}
#endif

View File

@@ -26,7 +26,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
@@ -47,4 +46,3 @@ namespace Microsoft.Build.Framework {
}
}
#endif

View File

@@ -26,11 +26,9 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
namespace Microsoft.Build.Framework {
public delegate void CustomBuildEventHandler (object sender,
CustomBuildEventArgs e);
}
#endif

View File

@@ -25,7 +25,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
@@ -60,4 +59,3 @@ namespace Microsoft.Build.Framework {
}
}
#endif

View File

@@ -25,7 +25,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
@@ -61,4 +60,3 @@ namespace Microsoft.Build.Framework {
}
}
#endif

View File

@@ -26,7 +26,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Collections;
@@ -73,4 +72,3 @@ namespace Microsoft.Build.Framework
}
}
#endif

View File

@@ -26,7 +26,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if NET_2_0
using System;
using System.Collections;
@@ -56,4 +55,3 @@ namespace Microsoft.Build.Framework
}
}
#endif

Some files were not shown because too many files have changed in this diff Show More