Visual Studio Build error Project file does not exist - asp.net-web-api

I have a build definition setup to deploy my Visual Studio project to Azure. This has been working for over a year now but suddenly I am getting this error. MSBUILD : error MSB1009: Project file does not exist.
I am selecting the solution file as the solution target for the Visual Studio build task. I have also tried selecting different visual studio versions but they all fail.
This appears to be happening across all the projects. I have web api and SQL projects. None of the build definitions are working anymore. All are throwing the project file does not exists error.

Related

.netstandard2.1, AndroidQ and TFS build

I have updated my Android app target from Android 9 to Android 10 (in accordance with Google Play requirements) recently, and now solution doesn't build on TFS with error:
C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): Error NETSDK1005: Assets file '...\obj\project.assets.json' doesn't have a target for 'netstandard2.1'. Ensure that restore has run and that you have included 'netstandard2.1' in the TargetFrameworks for your project.
There is the library in the solution that really targets to netstandard2.1, but:
I can build the solution on my desktop with Visual Studio Community 2019 16.4.6.
I can build the solution on TFS server remotely with Visual Studio Community 2019 16.5.1 and 16.8.2.
I cannot build the solution on TFS server via TFS interface. In the build pipeline there is an item Build Xamarin.Android Project which uses MSBuild from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin location (I presume VS should use this MSBuild file too during manual build). The MSBuild file has version 16.8.2.56705.
With the target Android 9 there was no issues with solution building.
What could be a reason? Thank you in advance.
I followed this recommendation to update nuget.exe to the latest version and it helps. But I'm still wondering why simple target's updating without VS update broke a build.

After upgrading Unity3D project from 2019.2.12f1 to 2020.3.1f1 Visual Studio Projects flooded with CS518 errors

I installed Unity 2020.3.1f1 and upgraded one of my Unity projects to this version from 2019.2.12f1. In the Unity Editor the upgraded project built and ran and everything seemed fine.
However, when the project was opened Visual Studio 2019 hundreds of errors were flagged - the majority being CS0518 errors with messages like "Predefined type 'System.String' is not defined or imported".
Editing the Project code in Visual Studio is now impossible!
How do fix this problem?
I was able to correct this problem as follows:
Close Visual Studio
In Unity Editor 2020.3.1f1 : Edit->Preferences->External Tools
Button under Generate .csproj files Regenerate Project Files
After running Regenerate Project Files I opened Visual Studio 2019 again and the floods of CS0518 errors were gone. The VS projects behaved normally.

The specified directory to the Visual Studio extension either does not exist

I just created CordovaApp (Multi-Device Hybrid App) in VS 2013. The application was working fine. Then I tried to open app with VS 2015 Community edition in another machine (and on same machine) and I am receiving following error:
Severity Code Description Project File Line Suppression State
Error The specified directory to the Visual Studio extension
D:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO
14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\node.exe either does not exist, or does not contain a packages\vs-mda sub-directory. Please
check that the extension directory exists and set the MDAVsixDir
variable to the correct
directory. MyAppCordovaApp C:\Users\foouser\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 105
I also installed Cordova Tools for VS update 6.
Is there any known work-around for this issue?
I am facing the same issue. Cordova project created in VS2013 is not going to run/debug at VS2015.
NodeJS module used for building the project is no longer called vs-mda (i.e. Visual Studio Multi-Device Application) but vs-tac (i.e. Visual Studio Tools for Apache Cordova).
After perform manual migration, it is working now.
See reference:-
http://mariusbancila.ro/blog/2015/07/31/migrating-a-cordova-project-from-visual-studio-2013-to-visual-studio-2015/

cannot open .scproj project in Visual Studio

I am trying to open my solution in Visual Studio 2010. I have 8 projects and four of them will not open due to the following error.
".scproj cannot be opened because its project type (.scproj) is not
supported by this version of the application"
Is this a setting in Visual studio or some configuration? Note: this is a Sitecore 6.4 Website if that changes anything.
Scproj files are used by TDS -Team Development for Sitecore
https://www.hhogdev.com/Downloads/Team-Development-for-Sitecore.aspx
If it is a TDS project file then you'll need to install TDS to load the project files.

Excluding a visual studio project from compilation for TeamCity

I'm using TeamCity build server, but one of my projects is a WiX project, I don't need TeamCity to compile it. I tried to exclude the project from visual studio Configuration Manager, and the project is excluded from build in Visual Studio, but TeamCity keeps trying to build that project.
Anybody knows why is this happening?

Resources