VS 2015 Publish is failing - - c#

Hi My WEB API project is failing with these error.
Though I could build and run my project without any error.
2> CopyPipelineFiles: Copying build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\$(ZlibCallingConvention)\zlib.dll to C:\Temp\Package\PackageTmp\build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\$(ZlibCallingConvention)\zlib.dll.
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(2991,5):
Error : Copying file build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\$(ZlibCallingConvention)\zlib.dll to C:\Temp\Package\PackageTmp\build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\$(ZlibCallingConvention)\zlib.dll failed. Could not find file 'build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\

Basically it turns out to be a 264 character limit. After making a Subst to the folder source solution published correctly.

Related

Microsoft.Typescript was not imported by Microsoft.NET.Sdk.Web.ProjectSystem

I am using VS Community Studio 2019 to build a new web page with ASP.NET. Upon creating new RESTful API templates, I receive this kind of error:
Project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\TypeScript\Microsoft.TypeScript.targets" was not imported by "C:\Program Files\dotnet\sdk\3.1.200\Sdks\Microsoft.NET.Sdk.Web.ProjectSystem\targets\Microsoft.NET.Sdk.Web.ProjectSystem.targets" at (14,3), due to the file being invalid
It is also an issue for Microsoft.Typescript.Default.props and Microsoft.TypeScript.DotNetCore.targets, leading to an error (I guess) :Root element is missing.
Is there any solution for it?
For the same error in my case this worked :
1 - Go to NuGet packages manager
2 - Install this package : Microsoft.TypesCript.MSBuild
Regards
After reinstalling the TypeScript SDK, the error became an warning: "This is most likely a build authoring error. This subsequent import will be ignored."

I am trying to publish web application as a deployment package and while publish i'm getting the below error

I am trying to publish web application as using a deployment package and while publish I'm getting the below error. Tried with different ways to resolve like update the JSON reference and … etc.
DLL is available, but no luck
Error :
Severity Code Description Project File Line Suppression State
Error Copying file packages\Newtonsoft.Json.11.0.1\lib\portable-net40+sl5+win8+wp8+wpa81\Newtonsoft.Json.dll to C:\Users\abc\AppData\Local\Temp\WebSitePublish\xyzwebapplication-150487496\obj\Debug\Package\PackageTmp\packages\Newtonsoft.Json.11.0.1\lib\portable-net40+sl5+win8+wp8+wpa81\Newtonsoft.Json.dll failed. Could not find a part of the path 'packages\Newtonsoft.Json.11.0.1\lib\portable-net40+sl5+win8+wp8+wpa81\Newtonsoft.Json.dll'. xyzwebapplication 0
This Has been solved After I did remove the unwanted packages from the solution.
Remove packages and clean solution ,rebuild followed by publish.
Project-->Packages-->remove
The folders like "Json" etc..
It was success

error cannot find path specified - NuGet - ASP.NET MVC

Can anyone help me fix this error? I am working on a project in ASP.NET MVC
Warning 1 The file '..\ProjectX.Data.CF\DbContextDatabase.cs' could not be added to the project. Cannot add a link to the file C:\Anže\Programi\ProjectXService\ProjectX.Data.CF\DbContextDatabase.cs. This file is within the project directory tree. ProjectX.Data.CF
Error 2 The system cannot find the path specified. WebPortal (WebPortal\WebPortal)
Error 3 The command ""C:\Anže\Programi\ProjectXService.nuget\NuGet.exe" install "C:\Anže\Programi\ProjectXService\WebPortal\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "C:\Anže\Programi\ProjectXService\ "" exited with code 3. WebPortal (WebPortal\WebPortal)
I tried:
clearing package cache
Allow NuGet to download missing packages during build" is checked.
clean solution
Something has got to be wrong with the database because I cannot run old "working" version of a project too.
EDIT:
I tried deleting database using the answer here:
How to re-create database for Entity Framework?
but I stopped at step 6 because I cannot run commands in PackageManagerConsole - it needs build, but I cannot build the project because of this error
Check your registry in this location:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
There could be an AutoRun key for something called ansicon - removing that could fix your problem.

SDK path is empty in Notepad++ plugin.net

I'm trying to develop a Notepad++ plugin using a nppPlugin.netV0.6 template.
Downloaded from http://sourceforge.net/projects/sourcecookifier/files/other%20plugins/NppPlugin.NET.v0.6.zip/download
I got a build error [SDK path is empty.]
The same template is working in other system (XP also).
Can anyone give me an resolution for this issue?
The build process calls program ildasm.exe. The directory for that program may not have been added to the PATH environment variable. When I installed Visual Studio 2012 Express installer the directory was not added so I added it to the PATH and the build succeeded.
I tracked the problem down by increasing the amount of logging output written by the build process. (Via Tools => Options => Projects and Solutions => Build and run => MS Build ... verbosity.)
Not sure whether your error is identical. Before adding the directory to the PATH the errors below were generated:
1>------ Rebuild All started: Project: NppManagedPluginDemo.VS2010, Configuration: Debug Any CPU ------
1> NppManagedPluginDemo.VS2010 -> C:\Adrian\VS\NppPlugin.NET.v0.5\Demo Plugin\NppManagedPluginDemo\bin\Debug\Demo.dll
1> ILDasm: calling 'ildasm.exe' with /quoteallnames /unicode /nobar /linenum "/out:C:\Users\Adrian_2\AppData\Local\Temp\tmpAB1F\Demo.il" "C:\Adrian\VS\NppPlugin.NET.v0.5\Demo Plugin\NppManagedPluginDemo\bin\Debug\Demo.dll"
1>C:\Adrian\VS\NppPlugin.NET.v0.5\Demo Plugin\NppManagedPluginDemo\DllExport\NppPlugin.DllExport.targets(8,5): error : The system cannot find the file specified
There are several versions of ildasm.exe in sub directories of c:\Program Files (x86)\Microsoft SDKs\Windows\ of my current computer.

PipelineSegments.store Build Error with VSTO and Visual Studio 2008

I've created an empty VSTO solution with an Excel 2007 Project. When I build the solution I get this error:
Error 1 An error occurred while
attempting to persist the data. The
message returned is: Could not find
the add-in deployment cache file,
"C:\Program Files\Common
Files\Microsoft
Shared\VSTA\Pipeline\PipelineSegments.store".
Please run AddInStore.Update or
Rebuild (or run AddInUtil.exe on the
command line). Also, ensure your code
has permission to read this file.
I've googled to no avail. Any ideas?
Thanks
Following these steps fixed it:
http://social.msdn.microsoft.com/forums/en-US/vsto/thread/ccccfd29-ce29-4aaa-8d89-56c88a1a8dd4

Categories