Skip to content

Instantly share code, notes, and snippets.

choco install visualstudio2017professional --add Microsoft.Net.Component.4.6.2.SDK;Microsoft.Net.Component.4.6.2.TargetingPack;Microsoft.VisualStudio.Workload.Data;Microsoft.VisualStudio.Workload.ManagedDesktop;Microsoft.VisualStudio.Workload.NetCoreTools;Microsoft.VisualStudio.Workload.NetWeb;Microsoft.VisualStudio.Workload.Office;Microsoft.VisualStudio.Workload.Universal;Microsoft.VisualStudio.Workload.NativeDesktop
@cwigley
cwigley / GenerateWhitelistFromWarnings.linq
Created August 17, 2017 13:58
Can copy visual studio warnings to a file and generate the xml for whitelisting them in the config.nsdepcop. Much better ways to do this, just a quick and dirty solution when setting up some really large projects.
void Main()
{
WarningParser parser = new WarningParser();
var lines = parser.GetRows(@"C:\Users\cwigley\Downloads\warnings.txt");
var allowed = parser.GetAllowed(lines).OrderBy(p => p.From).ThenBy(p => p.To).ThenBy(p => p.VisibleMembers.Types[0].Name).ToList();
var reconciled = parser.Reconcile(allowed);
AllowedSerializer serializer = new AllowedSerializer();
var result = serializer.GetEntries(reconciled);
result.Dump();
File.WriteAllText(@"c:\users\cwigley\downloads\nsconfig.txt",result);
@cwigley
cwigley / dev.txt
Last active August 29, 2015 14:05
Developer Machine Build
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Enable-MicrosoftUpdate
cinst VisualStudio2013Ultimate -InstallArguments "/Features:'Blend LightSwitch VC_MFC_Libraries OfficeDeveloperTools SQL WebTools Win8SDK SilverLight_Developer_Kit WindowsPhone80'"
cinst VS2013.3
cinst 7zip
cinst autohotkey
cinst ccleaner