External VS2013 build error “error MSB4019: The imported project path was not found”
Now problem us unclear for me, its building ok on my PC with VS2013, may be more simply path for build, like c:\dev\XMP...
My log :
c:\dev\XMP-Toolkit-SDK-CC201306\build>echo "================= Generate project f
or XMP build ================="
"================= Generate project for XMP build ================="
c:\dev\XMP-Toolkit-SDK-CC201306\build>call cmake.bat 64 2013 WarningAsError Stat
ic
c:\dev\XMP-Toolkit-SDK-CC201306\build>echo OFF
64 bit specified
"Generator VS 2013 specified"
"sensible warnings activated"
"Static build on"
CMakeFolder: "vc13/static/windows_x64"
Generator used: Visual Studio 12 Win64
cmake ../../../. -G"Visual Studio 12 Win64" -DXMP_CMAKEFOLDER_NAME=""vc13/static
/windows_x64"" -DCMAKE_CL_64=ON -DCMAKE_ARCH=x64 -DXMP_BUILD_WARNING_AS_ERROR=On
-DXMP_BUILD_STATIC="On"
-- The C compiler identification is MSVC 18.0.30723.0
-- The CXX compiler identification is MSVC 18.0.30723.0
-- Check for working C compiler using: Visual Studio 12 2013 Win64
-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
COMMON_BUILD_SHARED_DIR= C:/dev/XMP-Toolkit-SDK-CC201306/build/../build/shared
-- ===========================================================================
-- XMPCore64
-- ===========================================================================
-- OUTPUT_DIR = C:/dev/XMP-Toolkit-SDK-CC201306/XMPCore/build/../../public/libr
aries/windows_x64/$(configuration)
-- ===========================================================================
-- XMPFiles64
-- ===========================================================================
-- OUTPUT_DIR = C:/dev/XMP-Toolkit-SDK-CC201306/XMPFiles/build/../../public/lib
raries/windows_x64/$(configuration)
-- ===========================================================================
-- XMPToolkitSDK
-- ===========================================================================
-- 64 bit build is: 1
-- Static build is: On
-- XMPToolkitSDK
--
--
-- Compiler:
-- CC=C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.e
xe
-- CXX=C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.
exe
-- ===========================================================================
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ARCH
XMP_BUILD_WARNING_AS_ERROR
-- Build files have been written to: C:/dev/XMP-Toolkit-SDK-CC201306/build/vc13/
static/windows_x64
Success XMP build cmake.
"Exiting CMakeUtils.bat"
Success build cmake.
"Exiting cmake.bat"
Success.
"Exiting cmake_all.bat"
CMake Build Success.
External VS2013 build error error MSB4019: The imported project path was not found
I had the same issue and find an easier solution
It is due to Vs2012 adding the following to the csproj file:
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
You can safely remove that part and your solution will build.
As Sielu pointed out you have to ensure that the .proj file begin
with<Project ToolsVersion="12"
otherwise the next time you open the
project with visual studio 2010, it will add the removed node again.
Otherwise, if you need to use webdeploy or you use a build server, the above solution will not work but you can specify the VisualStudioVersion
property in your build script:
msbuild myproject.csproj /p:VisualStudioVersion=12.0
or edit your build definition:
publish task in devops pipeline failing with Import Project not found error
This is due to the wrong choice of your build task. Your project is Web app based on .net framework instead of .net core, so the dotnet build task used cannot find the web target file corresponding to the web app in the .net core directory.
You can use msbuild task or visual stuido build task instead.
Error while trying to run project: The system cannot find the file specified
I managed to open the builds by locating them manually and launch the .exe.
Related Topics
C#: Waiting for All Threads to Complete
Get Return Value from Stored Procedure
Detect If a Method Was Overridden Using Reflection (C#)
Using C# .Net Libraries to Check for Imap Messages from Gmail Servers
.Net Regex: What Is the Word Character \W
Relocating App.Config File to a Custom Path
Advantages of Cache VS Session
How to Call .Net Methods from Excel Vba
Resharper Wpf Error: "Cannot Resolve Symbol "Myvariable" Due to Unknown Datacontext"
How to Retrieve Data Annotations from Code? (Programmatically)
How to Call a Vbscript File in a C# Application
String = String + Int: What's Behind the Scenes
Nullable Type Is Not a Nullable Type
How to Include External Font in Wpf Application Without Installing It