Click here to Skip to main content
15,440,014 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Help with NotifyIcon on Windows 7 Pin
Adam Maras15-Aug-09 7:29
MemberAdam Maras15-Aug-09 7:29 
GeneralRe: Help with NotifyIcon on Windows 7 Pin
Soumya9217-Aug-09 1:43
MemberSoumya9217-Aug-09 1:43 
Questionhelp with .net clr hosting error Pin
foxymop14-Aug-09 8:54
Memberfoxymop14-Aug-09 8:54 
AnswerRe: help with .net clr hosting error Pin
Pete O'Hanlon14-Aug-09 9:42
mvaPete O'Hanlon14-Aug-09 9:42 
GeneralRe: help with .net clr hosting error Pin
foxymop14-Aug-09 11:22
Memberfoxymop14-Aug-09 11:22 
GeneralRe: help with .net clr hosting error Pin
Pete O'Hanlon14-Aug-09 11:33
mvaPete O'Hanlon14-Aug-09 11:33 
GeneralRe: help with .net clr hosting error Pin
Luc Pattyn14-Aug-09 12:26
sitebuilderLuc Pattyn14-Aug-09 12:26 
QuestionRelease / Debug App.configs [modified] Pin
Tristan Rhodes13-Aug-09 23:45
MemberTristan Rhodes13-Aug-09 23:45 
Hi Guys,

I've got two config files for a winforms app:
app.release.config
app.debug.config

I copy these into the appropriate folders using the following post build event:
if $(ConfigurationName) == Debug copy "$(ProjectDir)app.debug.config" "$(TargetPath).config"
if $(ConfigurationName) == Debug copy "$(ProjectDir)app.debug.config" "$(TargetDir)$(TargetName).vshost.exe.config"
if $(ConfigurationName) == Release copy "$(ProjectDir)app.release.config" "$(TargetPath).config"
if $(ConfigurationName) == Release copy "$(ProjectDir)app.release.config" "$(TargetDir)$(TargetName).vshost.exe.config"

This works if i only build the project, but if i run the project as well, then the files are replaced by the origional app.config.

If i change it to overwrite the app.config file (Either pre / post build):
if $(ConfigurationName) == Debug copy "$(ProjectDir)app.debug.config" "$(ProjectDir)app.config"
if $(ConfigurationName) == Release copy "$(ProjectDir)app.release.config" "$(ProjectDir)app.config"

Then it overwrites the app.config file fine, but doesn't actually copy it to the output directory.

Any thoughts? This should be a common problem that's got a solution right? It's driving me crazy Frown | :(

Regards

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

modified on Friday, August 14, 2009 6:17 AM

Questionpassing values from the windows form to a crystal report in vb.net Pin
myinstincts13-Aug-09 23:03
Membermyinstincts13-Aug-09 23:03 
Answer[Cross Post]Re: passing values from the windows form to a crystal report in vb.net Pin
Scott Dorman14-Aug-09 5:16
professionalScott Dorman14-Aug-09 5:16 
QuestionSigntool Pin
costas081113-Aug-09 7:23
Membercostas081113-Aug-09 7:23 
AnswerRe: Signtool Pin
Dave Kreskowiak13-Aug-09 8:09
mveDave Kreskowiak13-Aug-09 8:09 
GeneralRe: Signtool Pin
costas081113-Aug-09 8:42
Membercostas081113-Aug-09 8:42 
Question.Net System.IO.Packaging: Problem reading text, image, tables from a docx file Pin
GiliGiliGe13-Aug-09 5:41
MemberGiliGiliGe13-Aug-09 5:41 
QuestionMerge wave files with different sample rates/bits per sample Pin
pimb213-Aug-09 1:21
Memberpimb213-Aug-09 1:21 
AnswerRe: Merge wave files with different sample rates/bits per sample Pin
molesworth13-Aug-09 2:49
Membermolesworth13-Aug-09 2:49 
GeneralRe: Merge wave files with different sample rates/bits per sample Pin
pimb215-Aug-09 7:16
Memberpimb215-Aug-09 7:16 
Questionthe datagrid problem Pin
prakash.ss8313-Aug-09 1:16
Memberprakash.ss8313-Aug-09 1:16 
AnswerRe: the datagrid problem Pin
Henry Minute13-Aug-09 4:12
MemberHenry Minute13-Aug-09 4:12 
QuestionVC++.NET Question Pin
murktinez12-Aug-09 9:20
Membermurktinez12-Aug-09 9:20 
AnswerRe: VC++.NET Question Pin
Luc Pattyn12-Aug-09 9:32
sitebuilderLuc Pattyn12-Aug-09 9:32 
GeneralRe: VC++.NET Question [modified] Pin
murktinez12-Aug-09 10:19
Membermurktinez12-Aug-09 10:19 
GeneralRe: VC++.NET Question Pin
Luc Pattyn12-Aug-09 10:49
sitebuilderLuc Pattyn12-Aug-09 10:49 
QuestionXML Serialisation - is it possible to generate multiple views from an object? [modified] Pin
Kalyan_A12-Aug-09 4:56
professionalKalyan_A12-Aug-09 4:56 
AnswerRe: XML Serialisation - is it possible to generate multiple views from an object? Pin
Tristan Rhodes13-Aug-09 23:49
MemberTristan Rhodes13-Aug-09 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.