Questions tagged [buildaction]
The buildaction tag has no usage guidance.
buildaction
37
questions
0
votes
0
answers
45
views
Microsoft Visual Studio 2022 C# Programmatically Change or Evaluate a resource file Build Action value
Using C#, is it possible to Programmatically Change or Evaluate a resource file Build Action value?
In regards to evaluation, I mean, is there there a way to programmatically find out the Build Action ...
0
votes
0
answers
259
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 ...
7
votes
5
answers
4k
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
303
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
974
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
146
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
122
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
145
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
577
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 ...
11
votes
2
answers
8k
views
The difference between "Build", "Compile" and "None" Build actions in Visual Studio Database project
Although I can find (on the web) a lot of information about the PreDeploy and PostDeploy Build Action for SQL scripts in a Visual Studio 2012 Database project and I understand that None does not ...
0
votes
1
answer
3k
views
What does it mean that a DLL is flagged as "incorrectly specified as a file" in my C# project?
I get this warning in a C# project:
Assembly 'bin\DAL05.dll' is incorrectly specified as a file.
The project does reference DAL05, which has these values:
Description = "Data Access Layer for ...
1
vote
2
answers
76
views
Queries appear to work, but don't actually affect Access database
I've added an access db to my project as a datasource. So I get the automatically generated tableadapters class and therefore, access to the table adapter instance which includes the connection string....