question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors on "cannot be imported again. It was already imported This is most likely a build authoring error. This subsequent import will be ignored"

See original GitHub issue

Issue Description

I receive many error on messages as :

Error: "/home/xarkam/.vscode/extensions/ms-dotnettools.csharp-1.23.0/.omnisharp/1.36.1/omnisharp/.msbuild/Current/Bin/Microsoft.WorkflowBuildExtensions.targets" cannot be imported again. It was already imported at "/home/xarkam/.vscode/extensions/ms-dotnettools.csharp-1.23.0/.omnisharp/1.36.1/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets (6160,3)". This is most likely a build authoring error. This subsequent import will be ignored. [/home/xarkam/Developpement/Base/src/SoftinuxBase.Infrastructure/SoftinuxBase.Infrastructure.csproj]

Steps to Reproduce

I don’t know how to reproduce it maybe it is something with my project or the latest omnisharp update

Expected Behavior

Fix the errors

Actual Behavior

I am notified of errors in omnisharp

Logs

OmniSharp log

onmisharp.log

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.48.0 C# Extension: 1.23.0

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.401 Commit: 39d17847db

Runtime Environment: OS Name: neon OS Version: 20.04 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/3.1.401/

Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b

.NET Core SDKs installed: 3.1.401 [/usr/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
better-comments aaron-bond 2.1.0
Bookmarks alefragnani 11.3.1
bracket-pair-colorizer-2 CoenraadS 0.2.0
csharp ms-dotnettools 1.23.0
csharpextensions jchannon 1.3.1
dart-code Dart-Code 3.13.2
debugger-for-chrome msjsdiag 4.12.9
discord-vscode icrawl 4.0.0
docomment k–kato 0.1.18
dotnet-test-explorer formulahendry 0.7.4
emojisense bierner 0.7.0
errorlens usernamehw 3.2.0
flutter Dart-Code 3.13.2
gistfs vsls-contrib 0.1.8
git-graph mhutchie 1.25.0
githistory donjayamanne 0.6.9
gitignore codezombiech 0.6.0
gitlens eamodio 10.2.2
html-css-class-completion Zignd 1.19.0
html-snippets abusaidm 0.2.1
html5-boilerplate sidthesloth 1.0.3
LogFileHighlighter emilast 2.9.0
output-colorizer IBM 0.1.2
path-intellisense christian-kohler 2.2.1
polacode-with-copy fy 0.3.4
prettier-vscode esbenp 5.1.3
python ms-python 2020.8.101144
quicktype quicktype 12.0.46
remote-wsl ms-vscode-remote 0.44.4
rest-client humao 0.24.1
trailing-spaces shardulm94 0.3.1
vetur octref 0.26.1
vscode-coverage-gutters ryanluker 2.6.0
vscode-eslint dbaeumer 2.1.8
vscode-firefox-debug firefox-devtools 2.9.0
vscode-html-css ecmel 0.2.3
vscode-icons vscode-icons-team 10.2.0
vscode-nuget-gallery patcx 0.0.22
vscode-nuget-package-manager jmrog 1.1.6
vscode-solution-explorer fernandoescolar 0.3.10
vscode-typescript-tslint-plugin ms-vscode 1.2.3
vscode-versionlens Hoffs 0.25.6
vscode-versionlens pflannery 1.0.8
vscodeintellicode VisualStudioExptTeam 1.2.10
vsliveshare ms-vsliveshare 1.0.2619

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
filipwcommented, Aug 19, 2020

This is resolved here already https://github.com/OmniSharp/omnisharp-vscode/pull/3998 and will be part of the next (pre)release

0reactions
filipwcommented, Aug 20, 2020

This was released in 1.23.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

msbuild - *.targets cannot be imported again. It was already ...
This is most likely a build authoring error. This subsequent import will be ignored." trace it to a second props file in the...
Read more >
Warning MSB4011: "Microsoft.CSharp.targets" cannot be ...
This is most likely a build authoring error. This subsequent import will be ignored.
Read more >
MSB4011 - MSBuild
'project' cannot be imported again. It was already imported at ''. This is most likely a build authoring error. This subsequent import will...
Read more >
MSB4011 … .targets cannot be imported again
ImportAfter.targets (17,3)". This is most likely a build authoring error. This subsequent import will be ignored.
Read more >
MSB4011
... be imported again. It was already imported at "D:\Program Files (x86)\Microsoft Visual ... This is most likely a build authoring error. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found