Why do some files not auto publish with the rest of the project? - iis

There are a handful of files in my project that do not auto publish with the rest of my project to IIS when there are changes. I have to manually right-click on those files and publish them individually.
I am pretty sure I have done something to cause this because it appears that all of the files that do this have a check-mark next to the file (see layout.cshtml in the image below). What have I done, and how can I fix it?

Set file Build Action to Content, right Mouse click on file and select Properties in Solution Explorer. Like this:

Related

Can't create Sample Data Directory - Android Studio

I"m trying to Create a sample data directory, using Android Studio, by clicking on app in the project view and then right mouse click to find the menu item New > Sample Data Directory.
It is not working.
Creating the directory via android studio doesn't always work. You may need to create the directory manually in your directory structure (at /app/sampledata/) without using Android Studio. Once you create it (e.g., via Windows Explorer) it should show up in Android Studio. See the the following answer for more information about sample data in general: How to put new placeholder resources into Android Studio project ("tools:sample" resources)?
"Unlike resources like images, fonts, etc. The sample data does not go in /res/ (they are not compiled with the app, hence. It is probably easier to filter them out by putting them in a totally separate directory). They go in /app/sampledata/, for example: /app/sampledata/image.png."
You can create a sample data directory in Android Studio itself by following the below steps:
Change the view of directory structure from Android to Project as follows
Right click app folder and select New->Directory
Finally, give a name to your directory, in your case, it should be sampledata
I have already created sampledata directory that's why it says "Directory already exists".
That's it. You have done it. Remember that Android Studio also supports loading sample data from a json file. All you have to give is fully qualified name of the key residing in the json file.
Ex- if your json file contains key name inside a Json Array student, then you have to specify it as "#sample/your_student_file.json/student/name" to use values present in key name.
Unless your issue happens to be different, this is a known issue that only affects Windows. As I've found, it has something to do with 'C:\' in the file path.
https://issuetracker.google.com/issues/124553391
As Shawn mentioned, you need to manually create the directory.
I've been unable to get the images to actually display in the previewer, which I suspect may also be caused by the file path bug.
Inside the app folder in file explorer, You can create a new folder (sample data) which will be reflected in your android studio.

RDL file is not showing after restarting VS

I created rdl file in ssrs after restarting vs its not showing in solution explorer. But the file is present in folder
Rdl files are not automatically recognized by Visual Studio, but you can add the rdl file manually via Shift+Alt+A in the solution explorer or via the GUI.
First try to 'Clean' and 'Rebuild' your Report solution.
If that doesn't work since you said it exists in your folder you could manually add it.
Right Click on Reports folder > Add > Existing Item. See this image http://prntscr.com/8y3eyc

Unable to ignore files in Visual Studio 2012 using .tfignore file

I'm having some problems ignoring files in VS 2012 and was wondering if anyone could help. Essentially what I'm trying to do is ignore the Web.config file from a project in a solution.
I'm aware of the ability to "Exclude" the file but I wanted something a little more robust as I really don't like the way that VS re-includes the files when I right click the solution file and click "Check In".
Here's what I've tried so far:
Made a change to the Web.config
Team Explorer tab->Excluded Changes->click "Detected" link
Right click a file->"Ignore this local item" to create .tfignore file*
Open the .tfignore file and append "*.config". Saved.
Reopened VS
Opened Team Explorer tab again->Pending Changes
Web.config still appears in the "Included Changes" list!
As explained on http://msdn.microsoft.com/en-us/library/ms245454(v=vs.110).aspx#tfignore
Visual Studio seems to just completely ignore my .tfignore file.
Does anyone have any ideas/workarounds? Cheers.
You'll have to make sure you are using a local workspace (can be configured in the advanced part of edit workspace). The .tfignore file should apply as long as it is in your workspace. It will apply recursively to any subfolders and can be overridden by another .tfignore in any of the subfolders. Here's the reference for the .tfignore :
http://msdn.microsoft.com/library/vstudio/ms245454%28v=vs.110%29.aspx#tfignore

Visual Studio 2012 - Database Project - setting a default profile for publish

Just wondering if anyone knows how to set a saved publish profile as the default i.e. profile that's automatically loaded when I select publish. I love the new profile approach but I'm a bit over having to reselect the same profile over and over while I'm developing.
In VS2012 and up, you can set the Default Publish Profile by right-clicking on the .xml profile file and clicking the Set As Default Publish Profile option. It will then be auto-loaded when you click to Publish the project.
So I've just discovered how to do this, right click on the specific .xml file (e.g. Debug.publish.xml) that you wish to publish and it is automatically loaded into the Publish panel.
Double clicking the XML file also works
The latest Visual Studio 2012 Updates also now include right click options for:
1 - Set as default
2 - Publish
Rob, you may want to consider setting up some batch files that call SQLPackage to use your desired Publish profile. I blogged about it here: http://schottsql.blogspot.com/2012/11/ssdt-publishing-your-project.html
For our dev team, we have a set of batch files set up that can build one or all databases locally from whatever branch they're currently using. That makes it a lot easier to update the local database. The "Publish All" batch file takes a little time to run but is still better than opening each project individually to publish the databases.
Slightly odd issue: I renamed my .xml file to .localdev.xml....file name is "double extension'd" - VS/Datatools looks for ".publish.xml" NOT just the .xml file. In my case I needed "*.localdev.publish.xml". When it had the wrong name the "Set as Default Publish Profile" right click option DID NOT show up, nor did double-clicking...where is Molder when you need him?!?!? ;)
Get the name right, get the right functionality......MS needs better, more creative QA people!! ;)

HowTo create InstallShield MSI with no files needed locally?

Hello everyone and good day!
Question: I had create a Basic InstallShield Project in my MSVC2010, added some files and primary outputs and press build. Project compiled normally: there was created MSI, setup.exe, setup.ini and (WTF?!) local directory structure of files, which I'm trying to install (for example, "Program Files\My Company\app.exe, ..." files was copied there). I throught that this is not needed folder, so copied my setup files (MSI, setup.exe, setup.ini) to another folder and start installation. When process of installation come on to copy state, installer gave me the error, that no required files (app.exe,...) was found.
Does anybody solve this problem? I think this is the simple one.
Thanks!
You can achieve this by making some changes to the properties in solution explorer. This is so simple as you can compress all in single .exe file. Follow the given below step:
Right Click On Entire solution and Choose Properties as given below
Second step as you can see the dialog box. click on configuration Properties
Third Step
Last step
This is finest and easiest way to achieve the required task.
Answer was found by myself, but thank you all any way...
To create a self-extracted install file you need to open "Releases" tab in your InstallShield Basic project and right click on configuration click "Release WIzard...".
All what I need is at this figure:
Select Compressed from Compression option in properties view.
Simple use the "single image" build. Not cd nor dvd

Resources