INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
ideally one sentence >
// Updated Ultimate WPF Event Method Binding implementation by Mike Marynowski | |
// View the article here: http://www.singulink.com/CodeIndex/post/updated-ultimate-wpf-event-method-binding | |
// Licensed under the Code Project Open License: http://www.codeproject.com/info/cpol10.aspx | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Linq; |
More info can be found at, https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=netframework-4.7.2
// C:\ProgramData\
var path1 = System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApplicationData);
// C:\Users\USERNAME\AppData\Roaming
var path2 = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
Best solution (to copy to .csproj file) | |
- Runs after packing | |
- RoboCopy needs space after path arg e.g "..\df sd " if path has spaces in it otherwise do not include space. | |
- /XO ignores newer files in source | |
- /NFL /NDL /NJH partially removes RoboCopy output | |
- Since RoboCopy had different exit codes than MSBuild and many don't indicate error; need last two lines | |
<Target Name="PostPack" AfterTargets="Pack"> | |
<Exec Command=" | |
set source="$(ProjectDir)$(OutDir).. "
 |