Skip to content

Commit b849110

Browse files
authored
Merge pull request #14067 from MicrosoftDocs/ghogen-patch-423906
MSB3277 is a warning, not an error
2 parents 691e812 + 6fbf7ba commit b849110

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/msbuild/errors/msb3277.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MSB3277 diagnostic code
3-
description: Learn about the possible causes of the MSB3277 build error and get troubleshooting tips.
4-
ms.date: 05/16/2025
3+
description: Learn about the possible causes of the MSB3277 build warning and get troubleshooting tips.
4+
ms.date: 7/2/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3277
@@ -20,25 +20,25 @@ ms.subservice: msbuild
2020

2121
<!-- :::ErrorDefinitionDescription::: -->
2222
<!-- :::editable-content name="introDescription"::: -->
23-
This article describes the MSB3277 error code.
23+
This article describes the MSB3277 warning.
2424
<!-- :::editable-content-end::: -->
2525

2626
## Message text
2727

2828
<!-- :::editable-content name="messageText"::: -->
29-
`MSB3277: Found conflicts between different versions of 'value' that could not be resolved.`
29+
`MSB3277: Found conflicts between different versions of 'assembly-name' that could not be resolved.`
3030
<!-- :::editable-content-end::: -->
3131
<!-- MSB3277: Found conflicts between different versions of "{0}" that could not be resolved.
3232
{1} -->
3333

3434
<!-- :::editable-content name="postOutputDescription"::: -->
3535
## Description
3636

37-
This error occurs during a build when more than one version of the same dependent assembly is referenced in a build of the same project. In a .NET build, all assemblies that are referenced, directly or indirectly through other referenced assemblies, have to resolve to the same version. You can't reference two different and conflicting versions of the same assembly when building the same binary. The [ResolveAssemblyReference task](../resolveassemblyreference-task.md) emits this error. The task inspects all the referenced assemblies, and all assemblies referenced indirectly by those assemblies, and so on. The task works through the process until all assembly references are resolved.
37+
This warning occurs during a build when more than one version of the same dependent assembly is referenced in a build of the same project. In a .NET build, all assemblies that are referenced, directly or indirectly through other referenced assemblies, have to resolve to the same version. You shouldn't reference two different and conflicting versions of the same assembly when building the same binary. The [ResolveAssemblyReference task](../resolveassemblyreference-task.md) emits this warning. The task inspects all the referenced assemblies, and all assemblies referenced indirectly by those assemblies, and so on. The task works through the process until all assembly references are resolved.
3838

39-
## Diagnose the error
39+
## Diagnose the warning
4040

41-
To diagnose the error, first enable diagnostic log output by using the `-verbosity:diag` command-line switch, and then check the MSBuild log file with the full diagnostics output. For longer output logs on large projects, consider using the binary log `-bl` command-line switch and the [MSBuild Structured Log Viewer](https://msbuildlog.com/) to view the output more easily.
41+
To diagnose the issue, first enable diagnostic log output by using the `-verbosity:diag` command-line switch, and then check the MSBuild log file with the full diagnostics output. For longer output logs on large projects, consider using the binary log `-bl` command-line switch and the [MSBuild Structured Log Viewer](https://msbuildlog.com/) to view the output more easily.
4242

4343
In MSBuild 16.x or later, the specific assembly versions in conflict are written to the log file. In earlier versions of MSBuild, the content isn't added to the log file. Instead, follow the assembly dependency chain to locate the conflicting reference. Look at each assembly that your project references, and then the assemblies that the initial assemblies reference, and so on. Follow this process until you identify the conflicting assembly versions.
4444

@@ -108,10 +108,10 @@ Visual Studio or settings in project files can enable or disable automatic bindi
108108

109109
In advanced scenarios, your project might intentionally require more than one version of the same assembly. You can use special techniques to override the normal assembly loading process to accomplish the goal. For more information, see [Resolve assembly loads](/dotnet/standard/assembly/resolve-loads). Be sure to understand and follow the guidance in [Best practices for assembly loading](/dotnet/framework/deployment/best-practices-for-assembly-loading).
110110

111-
For a guide on resolving errors with assembly references, see [Troubleshoot assembly references](../troubleshoot-assembly-references.md) and [How the runtime locates assemblies](/dotnet/framework/deployment/how-the-runtime-locates-assemblies).
111+
For a guide on resolving issues with assembly references, see [Troubleshoot assembly references](../troubleshoot-assembly-references.md) and [How the runtime locates assemblies](/dotnet/framework/deployment/how-the-runtime-locates-assemblies).
112112
<!-- :::editable-content-end::: -->
113113
<!-- :::ErrorDefinitionDescription-end::: -->
114114

115115
## Applies to
116116

117-
All versions of MSBuild
117+
All versions of MSBuild

0 commit comments

Comments
 (0)