I'm trying to deploy my first C# web app using Visual Studio 2013, and the web deployment package fails with the message
Error 43 Copying file Content\lib\bootstrap-timepicker\Gruntfile.js to obj\Release\Package\PackageTmp\Content\lib\bootstrap-timepicker\Gruntfile.js failed. Could not find file 'Content\lib\bootstrap-timepicker\Gruntfile.js.
and the item itself displays
The item 'Gruntfile.js' does not exist in the project directory. It may have been moved, renamed, or deleted.
when attempting to open it. Gruntfile.js appears in numerous project folders, not just the one folder in which it carries the warning logo.
Where can I get a copy of just the bootstrap-timepicker Gruntfile.js, and how should it be imported into the project? The "Getting Started" and "Installing Grunt" sections of the gruntjs website seem to only discuss the original acquiring of the product, not necessarily how to recreate a corrupted version. Thanks in advance!
It looks like it's a file missing in one of your folders. And it looks like this component: https://github.com/jdewit/bootstrap-timepicker
You can download the gruntfile.js from there, and (just using Windows Explorer) paste it into the folder location specified in the error message. If it's named as part of the project already Visual Studio will pick up that it's been added, or you can refresh the folder in the Solution Explorer view.
Do the same for any other missing files. You can see what's missing in Visual Studio because the files will have a little yellow triangle next to them containing an exclamation mark.
Related
The project contains both c# and javascript source code. And I use visual studio 2015 (3) for the development. Since installing the TypeScipt 2.0.3 I cannot open the .js source files in editor. The message that pops up is:
An error occurred trying to load the page.
No exports were found that match the constraint:
ContractName Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
RequiredTypeIdentity Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
And it is also appearing in the TypeScript Build tab under solution properties.
Has anyone experienced the same issue or has any ideas on how to solve this? I'd like to edit the .js files in Visual Studio.
Try deleting the folder
"C:\Users\<userName>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache"
and then restart Visual Studio. This worked for me.
Delete the following folder and restart Visual studio.
C:\Users\yourusername\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
N.B. : The AppData folder may not appear on the first place. Unhide all hidden items from View tab and then follow the path.
It seems not matter what I do, I cannot get my .ts files to compile into .js files. I have uninstalled and reinstalled Visual Studio 2017 Community and I now have VS 2017 15.2 (26430.15) and Typescript 2.2.2.0 (according to the About window inside VS).
Steps I am taking:
Open Visual Studio, File -> New Project
ASP.Net Web Application (.Net
Framework)
Select 'empty' template, add references for MVC
Add a new folder called 'Scripts'
Add a new ts file called ts1.ts
Open ts1.ts and add single line (e.g. var a = 1)
Save - no JS emitted.
Build - no JS emitted.
Ask VS really nicely - no JS emitted.
I've tried it with/without tsconfig.json and I have tried adding compileOnSave to tsconfig when I have added it.
Help?
edit: There are no build errors or warnings and I get a message in the footer saying Output(s) generated successfully.
Do you not just need to select "Show All Files" in the Solution Explorer. I have just followed your exact steps, and when showing all files, I can see the JS file, its just not automaticly added to the project.
Spot the idiot.
I had to enable 'view all files' to see the generated JS.
In short:
How can I build and deploy using TeamCity multiple versions of jQuery?
Long way:
existing info:
Two files from jQuery (jquery-2.1.1.js and jquery-2.1.3.js) are checked into the source control (TFS) in absolutely same 100% way (Build Action -> "Context"). In parallel, in the same directory, all identical.
Local Build and deploy using MSStudio 12 works without any issues copying at the end of the build both files into Scripts directory
when it runs from TeamCity, it fails to find the relevant "meant to be copied" files and comes back with the following error:
"C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets(608,
5): Copying file Scripts\jquery-2.1.3.js to
obj\Debug\AspnetCompileMerge\Source\Scripts\jquery-2.1.3.js failed.
Could not find file 'Scripts\jquery-2.1.3.js'"
Would someone help me to understand what is going on?
before i reinstalled visual studio i had an option to choose a blank html/js only template. There is still an option for a blank JS project but it's different and it seems like it's supposed for windows 8 store apps.
I found a picture from a typescript template. I had the same option for javascript:
(source: msdn.com)
Now it's gone and I'd like to have it back. Maybe someone can help me out?
Thanks in advance
You have to restore the default project templates so as to fix your problem.
In the command prompt, navigate to the location of devenv.exe. This file is located in <Visual Studio Installation Path>\Common7\IDE.
Note:
If you are running Windows Vista or Windows 7, you must open the command prompt as an administrator
Type "devenv /installvstemplates" and press Enter.
Note:
If you are using an Express Edition of Visual Studio, type "<ExpressName>Express /installvstemplates" where <ExpressName> is either VB or VCS for Visual Basic and Visual C#, respectively.
By default, templates installed together with the product are located in:
\VisualStudioInstallationDirectory\Common7\IDE\ItemTemplates\Language\Locale\
\VisualStudioInstallationDirectory\Common7\IDE\ProjectTemplates\Language\Locale\
For example, the following directory contains the Visual Studio project templates for English:
C:\VisualStudioInstallationDirectory\Common7\IDE\ItemTemplates\VisualBasic\1033\
Try to empty them first and then reinstall .If this procedure does not restore the default templates, reinstall Visual Studio.
When running Eclipse Kepler and importing an existing Maven project, Eclipse hangs during "Building Workspace (XX%)". Switching to the Progress tab reveals a "Validating nnn"; it looks like it’s validating a directory containing JavaScript files.
Kill Eclipse process.
Go to project folder and edit .project file.
Remove the following lines (it will disable failing JavaScript validator):
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
Save file.
Re-open Eclipse.
I faced the same problem when I tried to install Angular.js with bower in my project. I seems bower has lots of javascript files it downloaded automatically which caused my IDE to stuck in validation process for a long time. So, I solved this problem this way,
I first installed tern.js 0.9.0.
Then I went to the project properties, selected tern script path
included only the path I needed for validation, My project's
javascript folder. I excluded other path like placeholders,
Angular.js files, Jquery files.
I selected the Javascript from the properties again and did the same
things in include path's source.
My IDE currently working without freezing. I took help from there. Tern
I guess it can be helpful, where any IDE stuck due to lots of Javascript file.