Skip to content

Instantly share code, notes, and snippets.

@kbaley
kbaley / GetPackagesAndVersionsFromCsproj.cs
Created June 2, 2020 16:12
Parse a list of dependencies out of a folder containing .csproj files
static async Task GetDependencies()
{
var root = Path.Combine(Directory.GetCurrentDirectory(), "Projects");
var files = Directory.EnumerateFiles(root, "*.csproj", SearchOption.AllDirectories);
var packages = new List<string>();
var mapFile = Path.Combine(Directory.GetCurrentDirectory(), "projectPackageMap.tsv");
File.Delete(mapFile);
// if (File.Exists(mapFile)) File.Delete(mapFile);
foreach (var file in files)
{
using NServiceBus;
public class MyMessage :
IMessage
{
public bool Done { get; set; }
}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->