vb.net publishing file location - vb.net

I'm using vs2010 pro and I've created a project and everything works fine. I have added a help file (.chm) to the project and set its properties to "content" and "output if newer".
My project resides on my C: drive in a folder; for example c:\myproject\whatever
When I publish my project, I publish it to a different location (on the network) z:\whatever
The project gets published to that location and the application works fine except for the fact that the .chm file ends up in my c:\myproject\debug directory and not on the network path that I published to. So my app can't find my .chm file after I publish it. It can only find it when I hit the green arrow and build it locally.
How do I force it to put everything in the publish folder that I choose when publishing?
Thanks.

I think the .chm is ending up in the debug directory for an unrelated reason. Anyway, to get it into the publish location, look on the Publish tab of the Application Explorer window, and click the Application Files button. Locate your .chm file in the list and change its status to 'Include'

Related

VS2019 : adding or renaming file in asp.net core project terribly slow

When we add a file, create a folder, rename a file or folder it lasts for seconds until this is done.
Even when directly doing those changes on the folder structure, it takes seconds in VS2019 to see them.
In other projects, part of the same solution we do not have this problem.
Any suggestions?
STEP 1 Clear Cache
Win+E to open File Explorer
Click tab "File" and "Change folder and search options"
Click Clear
STEP 2 Minimize Index scope
I. Open Windows Settings and Select "Indexing Options"
II. Click "Modify"
III. Unselect Driver C:// and others
You can do the dotnet restore in a command prompt in the web application directory. This solved the long freezes.
Clean this directory:
%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files
You can exclude extra folders by adding the property to the .csproj file, like <DefaultItemExcludes>$(DefaultItemExcludes);ClientLib\node_modules\**</DefaultItemExcludes>
references here:
https://developercommunity.visualstudio.com/content/problem/35570/create-new-file-and-file-rename-are-extremely-slow.html?page=1&pageSize=10&sort=votes&type=problem
https://learn.microsoft.com/en-us/previous-versions/ms366723(v=vs.140)?redirectedfrom=MSDN#compilation-folder-location
ASP.NET Temporary files cleanup
I had slow file add, delete, save, and slow folder add.
I just fixed mine, however my project also has React frontend, the culprit was the "node_modules" folder. I had moved the project from another drive and VS2019 included it as an active folder. Excluding it from the project brought everything back to normal. Since my project is .Net Core 3.1 + React - doing this might serve others - not sure if the OP is using node.js
In Solutions Explore --> Right click node_modules folder --> select "Exclude from Project"
If you are using source control (git) will still work ok as will the rest of your application.

unable to include external files in a project

I have created the default play application in IntelliJ in directory P. I have over-written the default index.scala.html with my own html code. The html code refers to some css and js files which are outside the directory P. To include these external files, I added the directory of these files using project configuration settings.
My webpage doesn't load properly as the server returns 404 for the css and js files. What am I doing wrong?
When you added your directory using project structure, you only say:
Hey, IDEA, please consider this folder part of my project, consider
its contents source code and display it when I open my project.
However, when you deploy or run your app, you only deploy the usual folders to the server, which contain the resources which will be available for clients to access.
The external directory is not part of these directories and will not be deployed.
What you can do is to copy the file from the external directory as a part of your build process before deploying the application.
EDIT: Detailed answer here: What is intellij's build process for play applications

Adding a folder with files to application - Visual Basic 2010

In my current project I have a folder with several files that the application needs to function properly. The folder is in the bin/debug folder and with the line Application.StartupPath I can easily access the files. It couldn't be easier.
However, when I publish the application the files don't seem to be included in the project, at least not at the StartupPath.
So my question is: how am I supposed to add this folder to my published application?
First, you'll need to include those files in your project. Then click each file in the Solution Explorer and in the Properties Windows change the value for "Copy to Output Directory" to "Copy Always".

VB.NET Multilingual resource files - work fine in dev - missing in publish

My click-once app has english and spanish content. In development, it runs fine with the two resource files I have - named multilingual.en-US.resx & multilingual.es-MX.resx accordingly. When I publish it looses these resources for referencing. Anyone have any idea why it would do that? The files reside in the root directory for the app.
A couple of things you can check:
Make sure the build action is set to "Embedded Resource" for those two files. (Click on them in solution explorer and check the properties window.)
In the Publish settings for your application, click the "Application Files" button and make sure the resource dlls are set to "Include". If they're not, ClickOnce might not pick them up.

Move files to a specific folder when run the setup file for VB.Net Application

I have created deployment package for VB.Net appolication and it runs fine. When setup is rnning, I want deployment package to move a file from bin folder to other specific folder.
Please suggest, how can I move this file to specific folder.
Any help would be appreciated.
Thanks, Yogi
In Visual Studio 2008 setup project,
Select File System on Target Machine and then from Action menu select Add Special folder and then Custom folder. A new folder will apear on left hand side under the "File System on Traget Machine". Add files, into this custom folder, which you want to copy into into specified location,
Now go into the property of this custom folder and set the DefaultLocation where you want to copy files under this custom folder.
Now when you run the setup this file under the custom folder will copy into the specified location which you set in DefaultLocation.
Yogi..