Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions src/Framework/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//-----------------------------------------------------------------------

using System.Reflection;
using System.Security.Permissions;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Windows.Markup;

// A combination of RequestMinimum and RequestOptional causes the permissions granted to
Expand Down
2 changes: 0 additions & 2 deletions src/Framework/BuildEngineResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
//-----------------------------------------------------------------------

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
5 changes: 2 additions & 3 deletions src/Framework/BuildEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
//-----------------------------------------------------------------------

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.IO;
using System.Runtime.Serialization;

namespace Microsoft.Build.Framework
{
Expand Down Expand Up @@ -326,7 +325,7 @@ internal virtual void CreateFromStream(BinaryReader reader, int version)
[OnDeserializing]
private void SetBuildEventContextDefaultBeforeSerialization(StreamingContext sc)
{
// Don't want to create a new one here as default all the time as that would be a lot of
// Don't want to create a new one here as default all the time as that would be a lot of
// possibly useless allocations
_buildEventContext = null;
}
Expand Down
7 changes: 2 additions & 5 deletions src/Framework/BuildEventContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;

namespace Microsoft.Build.Framework
{
Expand Down Expand Up @@ -220,8 +217,8 @@ public override int GetHashCode()
/// Compare a BuildEventContext with this BuildEventContext.
/// A build event context is compared in the following way.
///
/// 1. If the object references are the same the contexts are equivalent
/// 2. If the object type is the same and the Id values in the context are the same, the contexts are equivalent
/// 1. If the object references are the same the contexts are equivalent
/// 2. If the object type is the same and the Id values in the context are the same, the contexts are equivalent
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
Expand Down
1 change: 0 additions & 1 deletion src/Framework/BuildStartedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.Collections.Generic;

Expand Down
1 change: 0 additions & 1 deletion src/Framework/BuildStatusEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;

namespace Microsoft.Build.Framework
Expand Down
1 change: 0 additions & 1 deletion src/Framework/BuildWarningEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.IO;

Expand Down
3 changes: 0 additions & 3 deletions src/Framework/CriticalBuildMessageEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ExternalProjectFinishedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ExternalProjectStartedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// To Use:
// Add add module level suppressions to this file to have them suppressed in the assembly

using System.Diagnostics.CodeAnalysis;


#if CODE_ANALYSIS
[module: SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames")]
Expand Down
6 changes: 2 additions & 4 deletions src/Framework/IBuildEngine.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections;
using System.Runtime.InteropServices;

namespace Microsoft.Build.Framework
{
Expand Down Expand Up @@ -55,15 +53,15 @@ bool ContinueOnError
}

/// <summary>
/// Retrieves the line number of the task node within the project file that called it.
/// Retrieves the line number of the task node within the project file that called it.
/// </summary>
int LineNumberOfTaskNode
{
get;
}

/// <summary>
/// Retrieves the line number of the task node within the project file that called it.
/// Retrieves the line number of the task node within the project file that called it.
/// </summary>
int ColumnNumberOfTaskNode
{
Expand Down
2 changes: 0 additions & 2 deletions src/Framework/IBuildEngine2.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections;
using System.Runtime.InteropServices;

namespace Microsoft.Build.Framework
{
Expand Down
2 changes: 0 additions & 2 deletions src/Framework/IBuildEngine3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
// <summary>Interface for tasks to communicate with the MSBuild engine.</summary>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/IEventSource.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;

namespace Microsoft.Build.Framework
{
Expand Down
4 changes: 0 additions & 4 deletions src/Framework/IGeneratedTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
// <summary>An interface implemented by tasks that are generated by ITaskFactory instances.</summary>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ITask.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ITaskFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
2 changes: 0 additions & 2 deletions src/Framework/ITaskFactory2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
// <summary>Task factory Instance which will instantiate and execute tasks</summary>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Build.Framework
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/ITaskHost.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ITaskItem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections;
using System.Runtime.InteropServices;

Expand Down
2 changes: 0 additions & 2 deletions src/Framework/ITaskItem2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
// <summary>An improvement to ITaskItem that makes it possible for implementations to avoid losing escaping information.</summary>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Collections.Generic;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/ProjectFinishedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.IO;

Expand Down
5 changes: 2 additions & 3 deletions src/Framework/ProjectStartedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace Microsoft.Build.Framework
{
Expand Down Expand Up @@ -527,7 +526,7 @@ internal override void CreateFromStream(BinaryReader reader, int version)
private void SetDefaultsBeforeSerialization(StreamingContext sc)
{
_projectId = InvalidProjectId;
// Don't want to set the default before deserialization is completed to a new event context because
// Don't want to set the default before deserialization is completed to a new event context because
// that would most likely be a lot of wasted allocations
_parentProjectBuildEventContext = null;
}
Expand Down
3 changes: 1 addition & 2 deletions src/Framework/TargetFinishedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.IO;
using System.Collections;
using System.IO;

namespace Microsoft.Build.Framework
{
Expand Down
1 change: 0 additions & 1 deletion src/Framework/TargetStartedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Runtime.InteropServices;
using System;
using System.IO;

Expand Down
1 change: 0 additions & 1 deletion src/Framework/TaskFinishedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// <summary>Event args for target finished event.</summary>
//-----------------------------------------------------------------------

using System.Runtime.InteropServices;
using System;
using System.IO;

Expand Down
1 change: 0 additions & 1 deletion src/Framework/TaskPropertyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//-----------------------------------------------------------------------

using System;
using System.Reflection;

namespace Microsoft.Build.Framework
{
Expand Down
9 changes: 2 additions & 7 deletions src/Framework/UnitTests/Attribute_Tests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Reflection;

namespace Microsoft.Build.UnitTests
{
Expand Down
3 changes: 1 addition & 2 deletions src/Framework/UnitTests/BuildErrorEventArgs_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
// <summary>Unit tests for BuildErrorEventArgs</summary>
//-----------------------------------------------------------------------

using System;

using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Microsoft.Build.UnitTests
{
Expand Down
3 changes: 1 addition & 2 deletions src/Framework/UnitTests/BuildFinishedEventArgs_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
// <summary>Unit tests for BuildFinishedEventArgs_Tests</summary>
//-----------------------------------------------------------------------

using System;

using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Microsoft.Build.UnitTests
{
Expand Down
3 changes: 1 addition & 2 deletions src/Framework/UnitTests/BuildMessageEventArgs_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
// <summary>Unit tests for BuildMessageEventArgs_Tests</summary>
//-----------------------------------------------------------------------

using System;

using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Microsoft.Build.UnitTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/UnitTests/BuildStartedEventArgs_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// <summary>Unit tests for BuildStartedEventArgs</summary>
//-----------------------------------------------------------------------

using System;
using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Microsoft.Build.UnitTests
{
Expand Down
3 changes: 1 addition & 2 deletions src/Framework/UnitTests/BuildWarningEventArgs_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
// <summary>Unit tests for BuildWarningEventArgs</summary>
//-----------------------------------------------------------------------

using System;

using Microsoft.Build.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Microsoft.Build.UnitTests
{
Expand Down
Loading