40 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
57
views
Prevent VSTO .msi installation if Word is running (check winword.exe)
I'm developing a VSTO add-in for Microsoft Word and packaging it using a .msi installer (Visual Studio Installer Project). Before proceeding with the installation, I want to ensure that Word (winword....
0
votes
0
answers
283
views
XML file is not being copied to output directory in .NET 8
I am working on a .NET 8 C# application that contains a XML file nested within multiple folders. I have set the properties of the XML file to have RootContent and "Copy Always" for the build ...
0
votes
1
answer
138
views
Multiple build actions per file in Visual Studio
I have a few C# (*.cs) files in my project that need to be included in compilation as well as distributed as source code along with the application (the application itself is not open-source).
...
0
votes
0
answers
82
views
BuildAction = None for all files
Requirement is we need to keep files in a project & not to include those files in the dacpac. When I set manually BuildAction = None. file not including in dacpac.This works.
But we have multiple ...
0
votes
0
answers
406
views
.Net Maui Including large file in project
I am trying to include a large file in my project but it doesn't let me. If set the Build Action to "MauiAsset" I get the following error: "APT2000 filemap E 08-18 15:25:19 23420 8832 ...
9
votes
5
answers
8k
views
Changes to appsettings.json config files not picked up?
I recently noticed some strange behaviour in Visual Studio. If I edit my appsettings.json file then run in debug F5, the changed config is not picked up by the compiler.
3
votes
2
answers
491
views
How to get C# library file in output directory?
I have a solution with a few projects:
library.dll with something.json
webapp.dll
winapp.exe
2 and 3 depend on 1, not on eachother.
I would like copy something.json to the bin directory of winapp....
1
vote
1
answer
1k
views
How to flatten Nuget package contentFiles?
Nuget package issues - buildAction, copyToOutput, flatten are ignored
Package project (ThisProject.vbproj)- .Net Standard Library 2.0, .nuspec file:
<references>
<reference file="...
0
votes
1
answer
169
views
Visual Studio 2017 web deploy: wait for custom pre-build action finish
I want to use a web deploy to publish my ASP.Net Web API project along with Angular app. Angular app build is running in pre-build action, I'm using CustommCollectFiles to include \dist folder in ...
0
votes
1
answer
149
views
Change BuildAction to None in VSIX
So I am currently working on an extension and I want to change the Build Action of a specific ProjectItem to None.
What I tried
I noticed that the ProjectItem had a Properties property which ...
1
vote
2
answers
217
views
Which Build Action (C# Microsoft Visual Studio) is suitable for launching an .exe software which has zero or more dependents within a Windows Form?
Consider these two software: MyGame.exe and SocketTest.exe.
MyGame.exe doesn't depend on any files to run but SocketTest.exe is an actual software. It can only run if one or more of four other files ...
0
votes
0
answers
17
views
WPF cannot set Build Action for added file [duplicate]
my app is WPF (VS 2017). I want to add an image to the project and I need to use a relative path, in order to have that included in the app when it is published. (There was a similar question here and ...
0
votes
1
answer
1k
views
WPF C# Reflection: Iterate over all resources with build action "Page"
I have a .dll with a lot of ResourceDictionaries.
The build action of all these ResourceDictionaries is set to "Page".
Inside the Dll, I want to find all these ResourceDictionaries and iterate over ...
1
vote
1
answer
1k
views
WPF How to modify resource/content file inside my project folder at runtime (NOT in bin directory)? Implementing "Recent changes" section
I would like to modify the contents of a file placed in my project folder (Specifically "Assets/recentChanges.txt") at runtime. Let's say it contains information about recent changes in application. ...
0
votes
0
answers
719
views
C# files Build Action = Content and Copy to Output = Copy Always being copied on Build but deleted on Run
I have some files setup to copy to the output directory on build. When I do a build the files are copied as expected. If I check the build log I can see the file being moves from the specific project ...