diff --git a/Basin.DuckDuckGoExample/DuckDuckGo.json b/Basin.DuckDuckGoExample/DuckDuckGo.json new file mode 100644 index 0000000..86c1639 --- /dev/null +++ b/Basin.DuckDuckGoExample/DuckDuckGo.json @@ -0,0 +1,11 @@ +{ + "SiteConfig": { + "Name": "DuckDuckGo", + "Url": "https://duckduckgo.com" + }, + + "DriverConfig": { + "Browser": "Chrome", + "Timeout": 20 + } +} \ No newline at end of file diff --git a/Basin.DuckDuckGoExample/Shared/Sidebar.cs b/Basin.DuckDuckGoExample/Shared/Sidebar.cs index a918df0..3b71d1e 100644 --- a/Basin.DuckDuckGoExample/Shared/Sidebar.cs +++ b/Basin.DuckDuckGoExample/Shared/Sidebar.cs @@ -10,7 +10,7 @@ public class Sidebar : PageBase, IPage public Sidebar SlideOpen() { - Map.HamburgerButton.Click(); + Map.HamburgerMenu.Click(); Wait.Until(Map.Container.IsDisplaying); return this; @@ -47,7 +47,7 @@ public class SidebarMap : PageMapBase, IPageMap public Element Container => Locate(By.CssSelector(SidebarContainer)); - public Element HamburgerButton => Locate(By.CssSelector(".header--aside .header__button--menu.js-side-menu-open")); + public Element HamburgerMenu => Locate(By.CssSelector(".header--aside .header__button--menu.js-side-menu-open")); public Element Themes => Locate(LinkBy("https://duckduckgo.com/settings#theme")); diff --git a/Basin.sln b/Basin.sln index 4cf140e..0a45a64 100644 --- a/Basin.sln +++ b/Basin.sln @@ -1,27 +1,17 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basin.Selenium", "Basin.Selenium\Basin.Selenium.csproj", "{A4D9B093-3A16-445E-896B-DDC77F7E3E65}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basin.Screens", "Basin.Screens\Basin.Screens.csproj", "{891BA36B-9EEE-4464-8EB3-526D7A42EBAF}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basin.Utils", "Basin.Utils\Basin.Utils.csproj", "{F6E80C20-6D67-42B2-8C3F-0E58FDE47EB5}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basin.DuckDuckGoExample", "Basin.DuckDuckGoExample\Basin.DuckDuckGoExample.csproj", "{C4C5DCDA-1DBB-49FA-A766-B7A82D8EDE51}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basin", "Basin\Basin.csproj", "{A69E54D5-45F3-4F53-A6B5-85BB1F89C73D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A4D9B093-3A16-445E-896B-DDC77F7E3E65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A4D9B093-3A16-445E-896B-DDC77F7E3E65}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A4D9B093-3A16-445E-896B-DDC77F7E3E65}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A4D9B093-3A16-445E-896B-DDC77F7E3E65}.Release|Any CPU.Build.0 = Release|Any CPU - {891BA36B-9EEE-4464-8EB3-526D7A42EBAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {891BA36B-9EEE-4464-8EB3-526D7A42EBAF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {891BA36B-9EEE-4464-8EB3-526D7A42EBAF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {891BA36B-9EEE-4464-8EB3-526D7A42EBAF}.Release|Any CPU.Build.0 = Release|Any CPU {F6E80C20-6D67-42B2-8C3F-0E58FDE47EB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F6E80C20-6D67-42B2-8C3F-0E58FDE47EB5}.Debug|Any CPU.Build.0 = Debug|Any CPU {F6E80C20-6D67-42B2-8C3F-0E58FDE47EB5}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -30,5 +20,9 @@ Global {C4C5DCDA-1DBB-49FA-A766-B7A82D8EDE51}.Debug|Any CPU.Build.0 = Debug|Any CPU {C4C5DCDA-1DBB-49FA-A766-B7A82D8EDE51}.Release|Any CPU.ActiveCfg = Release|Any CPU {C4C5DCDA-1DBB-49FA-A766-B7A82D8EDE51}.Release|Any CPU.Build.0 = Release|Any CPU + {A69E54D5-45F3-4F53-A6B5-85BB1F89C73D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A69E54D5-45F3-4F53-A6B5-85BB1F89C73D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A69E54D5-45F3-4F53-A6B5-85BB1F89C73D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A69E54D5-45F3-4F53-A6B5-85BB1F89C73D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/Basin/Basin.cs b/Basin/Basin.cs new file mode 100644 index 0000000..4db2323 --- /dev/null +++ b/Basin/Basin.cs @@ -0,0 +1,73 @@ +// + +using System.Collections.Generic; +using System.Globalization; +using Basin.Config.Interfaces; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Basin +{ + public partial class Basin + { + [JsonProperty("Site")] public SiteConfig Site { get; set; } + + [JsonProperty("Driver")] public DriverConfig Driver { get; set; } + + [JsonProperty("Logins")] public List Logins { get; set; } + } + + public class DriverConfig : IDriverConfig + { + [JsonProperty("Timeout")] public int Timeout { get; set; } + + [JsonProperty("Browser")] public string Browser { get; set; } + } + + public class LoginConfig : ILoginConfig + { + [JsonProperty("Role")] public string Role { get; set; } + + [JsonProperty("Username")] public string Username { get; set; } + + [JsonProperty("Password")] public string Password { get; set; } + + [JsonProperty("Token")] public string Token { get; set; } + } + + public class SiteConfig : ISiteConfig + { + [JsonProperty("Name")] public string Name { get; set; } + + [JsonProperty("Url")] public string Url { get; set; } + } + + public partial class Basin + { + public static Basin FromJson(string json) + { + return JsonConvert.DeserializeObject(json, Converter.Settings); + } + } + + public static class Serialize + { + public static string ToJson(this Basin self) + { + return JsonConvert.SerializeObject(self, Converter.Settings); + } + } + + internal static class Converter + { + public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings + { + MetadataPropertyHandling = MetadataPropertyHandling.Ignore, + DateParseHandling = DateParseHandling.None, + Converters = + { + new IsoDateTimeConverter {DateTimeStyles = DateTimeStyles.AssumeUniversal} + } + }; + } +} \ No newline at end of file diff --git a/Basin/Basin.csproj b/Basin/Basin.csproj new file mode 100644 index 0000000..8ac287e --- /dev/null +++ b/Basin/Basin.csproj @@ -0,0 +1,36 @@ + + + + BasinFramework + 0.0.1 + Arik Jones + BasinFramework + net472;netcoreapp2.1 + 8 + Arik Jones + https://github.com/tnypxl/BasinFrameworkDotNetCore + https://raw.githubusercontent.com/tnypxl/BasinFrameworkDotNetCore/master/LICENSE + https://github.com/tnypxl/BasinFrameworkDotNetCore + GitHub + selenium, browser, automation, framework + true + + + + + + + + + + + + + + + + + + + + diff --git a/Basin/Config/Interfaces/IDatabaseConfig.cs b/Basin/Config/Interfaces/IDatabaseConfig.cs new file mode 100644 index 0000000..4eb61c3 --- /dev/null +++ b/Basin/Config/Interfaces/IDatabaseConfig.cs @@ -0,0 +1,12 @@ +using System; + +namespace Basin.Config.Interfaces +{ + public interface IDatabaseConfig + { + Uri Host { get; set; } + string Port { get; set; } + string Username { get; set; } + string Password { get; set; } + } +} \ No newline at end of file diff --git a/Basin/Config/Interfaces/IDriverConfig.cs b/Basin/Config/Interfaces/IDriverConfig.cs new file mode 100644 index 0000000..3d012fc --- /dev/null +++ b/Basin/Config/Interfaces/IDriverConfig.cs @@ -0,0 +1,8 @@ +namespace Basin.Config.Interfaces +{ + public interface IDriverConfig + { + int Timeout { get; set; } + string Browser { get; set; } + } +} \ No newline at end of file diff --git a/Basin/Config/Interfaces/ILoginConfig.cs b/Basin/Config/Interfaces/ILoginConfig.cs new file mode 100644 index 0000000..e9515d3 --- /dev/null +++ b/Basin/Config/Interfaces/ILoginConfig.cs @@ -0,0 +1,10 @@ +namespace Basin.Config.Interfaces +{ + public interface ILoginConfig + { + string Role { get; set; } + string Username { get; set; } + string Password { get; set; } + string Token { get; set; } + } +} \ No newline at end of file diff --git a/Basin/Config/Interfaces/ISiteConfig.cs b/Basin/Config/Interfaces/ISiteConfig.cs new file mode 100644 index 0000000..a53b1e3 --- /dev/null +++ b/Basin/Config/Interfaces/ISiteConfig.cs @@ -0,0 +1,8 @@ +namespace Basin.Config.Interfaces +{ + public interface ISiteConfig + { + string Name { get; set; } + string Url { get; set; } + } +} \ No newline at end of file diff --git a/Basin/Screens/Interfaces/IScreen.cs b/Basin/Screens/Interfaces/IScreen.cs new file mode 100644 index 0000000..03ff3f4 --- /dev/null +++ b/Basin/Screens/Interfaces/IScreen.cs @@ -0,0 +1,44 @@ +using Basin.Selenium; + +namespace Basin.Screens.Interfaces +{ + /// + /// Interface for defining page/screen object classes. + /// + /// + public interface IScreen + { + /// + /// Implements accessor for an IScreenMap class object. + /// + TScreenMap Map { get; } + } + + + /// + /// + public interface IPage : IScreen + { + } + + /// + /// + public interface IScreenComponent : IScreen + { + } + + /// + /// + public interface IPageComponent : IScreen + { + } + + // + public interface IPageBase + { + /// + /// Interface for implementing methods from Basin.Selenium.Driver. + /// + Wait Wait { get; } + } +} \ No newline at end of file diff --git a/Basin/Screens/Interfaces/IScreenMap.cs b/Basin/Screens/Interfaces/IScreenMap.cs new file mode 100644 index 0000000..60aaee2 --- /dev/null +++ b/Basin/Screens/Interfaces/IScreenMap.cs @@ -0,0 +1,38 @@ +using Basin.Selenium; +using OpenQA.Selenium; + +namespace Basin.Screens.Interfaces +{ + /// + /// Interface for implementing methods from Basin.Selenium.Driver. + /// + public interface IScreenMapBase + { + Element Locate(By by); + + Element Locate(string css); + + Elements LocateAll(By by); + } + + /// + /// Interface for page/screen map classes. + /// + public interface IScreenMap + { + /// + /// Adds a common method for defining the root/containing element in a map class. + /// + Element Container { get; } + } + + /// + public interface IPageMap : IScreenMap + { + } + + /// + public interface IPageMapBase : IScreenMapBase + { + } +} \ No newline at end of file diff --git a/Basin/Selenium/Browsers/Chrome.cs b/Basin/Selenium/Browsers/Chrome.cs new file mode 100644 index 0000000..418b58f --- /dev/null +++ b/Basin/Selenium/Browsers/Chrome.cs @@ -0,0 +1,20 @@ +using OpenQA.Selenium; +using OpenQA.Selenium.Chrome; + +namespace Basin.Selenium.Browsers +{ + internal class Chrome + { + public readonly IWebDriver Current; + + public Chrome(ChromeOptions opts = null) + { + var options = opts ?? new ChromeOptions(); + var service = ChromeDriverService.CreateDefaultService(); + + service.HideCommandPromptWindow = true; + + Current = new ChromeDriver(service, options); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Browsers/Firefox.cs b/Basin/Selenium/Browsers/Firefox.cs new file mode 100644 index 0000000..cf81d08 --- /dev/null +++ b/Basin/Selenium/Browsers/Firefox.cs @@ -0,0 +1,20 @@ +using OpenQA.Selenium; +using OpenQA.Selenium.Firefox; + +namespace Basin.Selenium.Browsers +{ + public class Firefox + { + public readonly IWebDriver Current; + + public Firefox(FirefoxOptions opts = null) + { + var options = opts ?? new FirefoxOptions(); + var service = FirefoxDriverService.CreateDefaultService(); + + service.HideCommandPromptWindow = true; + + Current = new FirefoxDriver(service, options); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Browsers/InternetExplorer.cs b/Basin/Selenium/Browsers/InternetExplorer.cs new file mode 100644 index 0000000..af9a6ea --- /dev/null +++ b/Basin/Selenium/Browsers/InternetExplorer.cs @@ -0,0 +1,20 @@ +using OpenQA.Selenium; +using OpenQA.Selenium.IE; + +namespace Basin.Selenium.Browsers +{ + public class InternetExplorer + { + public readonly IWebDriver Current; + + public InternetExplorer(InternetExplorerOptions opts = null) + { + var options = opts ?? new InternetExplorerOptions(); + var service = InternetExplorerDriverService.CreateDefaultService(); + + service.HideCommandPromptWindow = true; + + Current = new InternetExplorerDriver(service, options); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Driver.cs b/Basin/Selenium/Driver.cs new file mode 100644 index 0000000..aef7ecf --- /dev/null +++ b/Basin/Selenium/Driver.cs @@ -0,0 +1,63 @@ +using System; +using OpenQA.Selenium; + +namespace Basin.Selenium +{ + public static class Driver + { + [ThreadStatic] private static IWebDriver _driver; + + [ThreadStatic] public static Wait Wait; + + [ThreadStatic] public static Window Window; + + public static IWebDriver Current => _driver ?? throw new NullReferenceException("_driver is null."); + + public static string Title => Current.Title; + + public static void Init(string browserName, int waitSeconds = 10) + { + if (string.IsNullOrEmpty(browserName)) + throw new ArgumentException( + "Expected value to be 'chrome', 'firefox', or 'internet explorer'", nameof(browserName)); + + _driver = DriverFactory.Build(browserName); + Wait = new Wait(waitSeconds); + Window = new Window(); + Window.Maximize(); + } + + public static void Goto(string url) + { + Current.Navigate().GoToUrl(url); + } + + public static Element Locate(By by) + { + var element = Wait.Until(driver => driver.FindElement(by)); + return new Element(element) + { + FoundBy = by + }; + } + + public static Elements LocateAll(By by) + { + return new Elements(Current.FindElements(by)) + { + FoundBy = by + }; + } + + // TODO: Implement screenshots + // public static void TakeScreenshot(string imageName) + // { + // ... + // } + + public static void Quit() + { + Current.Quit(); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/DriverFactory.cs b/Basin/Selenium/DriverFactory.cs new file mode 100644 index 0000000..784a3af --- /dev/null +++ b/Basin/Selenium/DriverFactory.cs @@ -0,0 +1,27 @@ +using System; +using Basin.Selenium.Browsers; +using OpenQA.Selenium; +using OpenQA.Selenium.Chrome; +using OpenQA.Selenium.Firefox; +using OpenQA.Selenium.IE; + +namespace Basin.Selenium +{ + public static class DriverFactory + { + public static IWebDriver Build(string browserName, object options = null) + { + switch (browserName.ToLower()) + { + case "chrome": + return new Chrome((ChromeOptions) options).Current; + case "firefox": + return new Firefox((FirefoxOptions) options).Current; + case "internet explorer": + return new InternetExplorer((InternetExplorerOptions) options).Current; + default: + throw new ArgumentException($"{browserName} not supported."); + } + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Element.cs b/Basin/Selenium/Element.cs new file mode 100644 index 0000000..e61b33c --- /dev/null +++ b/Basin/Selenium/Element.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.ObjectModel; +using System.Drawing; +using OpenQA.Selenium; +using OpenQA.Selenium.Interactions; + +namespace Basin.Selenium +{ + public class Element : IWebElement + { + private readonly IWebElement _element; + + public Element(IWebElement element) + { + _element = element; + } + + public By FoundBy { get; set; } + + private IWebElement Current => _element ?? throw new NullReferenceException("_element is null."); + + public Func IsDisplaying => WaitConditions.ElementDisplayed(_element); + + public Func IsNotDisplaying => WaitConditions.ElementNotDisplayed(_element); + + public string TagName => Current.TagName; + + public string Text => Current.Text; + + public bool Enabled => Current.Enabled; + + public bool Selected => Current.Selected; + + public Point Location => Current.Location; + + public Size Size => Current.Size; + + public bool Displayed => Current.Displayed; + + public void Clear() + { + Current.Clear(); + } + + public void Click() + { + Current.Click(); + } + + public IWebElement FindElement(By by) + { + return Current.FindElement(by); + } + + public ReadOnlyCollection FindElements(By by) + { + return Current.FindElements(by); + } + + public string GetAttribute(string attributeName) + { + return Current.GetAttribute(attributeName); + } + + public string GetCssValue(string propertyName) + { + return Current.GetCssValue(propertyName); + } + + public string GetProperty(string propertyName) + { + return Current.GetProperty(propertyName); + } + + public void SendKeys(string text) + { + Current.SendKeys(text); + } + + public void Submit() + { + Current.Submit(); + } + + public void Hover() + { + var actions = new Actions(Driver.Current); + actions.MoveToElement(Current).Perform(); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Elements.cs b/Basin/Selenium/Elements.cs new file mode 100644 index 0000000..7319f99 --- /dev/null +++ b/Basin/Selenium/Elements.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using System.Collections.ObjectModel; +using OpenQA.Selenium; + +namespace Basin.Selenium +{ + public class Elements : ReadOnlyCollection + { + private readonly IList _elements; + + public Elements(IList list) : base(list) + { + _elements = list; + } + + public By FoundBy { get; set; } + + public bool IsEmpty => Count == 0; + } +} \ No newline at end of file diff --git a/Basin/Selenium/Wait.cs b/Basin/Selenium/Wait.cs new file mode 100644 index 0000000..279f940 --- /dev/null +++ b/Basin/Selenium/Wait.cs @@ -0,0 +1,35 @@ +using System; +using OpenQA.Selenium; +using OpenQA.Selenium.Support.UI; + +namespace Basin.Selenium +{ + public class Wait + { + private readonly WebDriverWait _wait; + + public Wait(int waitSeconds) + { + _wait = new WebDriverWait(Driver.Current, TimeSpan.FromSeconds(waitSeconds)) + { + PollingInterval = TimeSpan.FromMilliseconds(500) + }; + + _wait.IgnoreExceptionTypes( + typeof(NoSuchElementException), + typeof(ElementNotVisibleException), + typeof(StaleElementReferenceException) + ); + } + + public bool Until(Func condition) + { + return _wait.Until(condition); + } + + public IWebElement Until(Func condition) + { + return _wait.Until(condition); + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/WaitConditions.cs b/Basin/Selenium/WaitConditions.cs new file mode 100644 index 0000000..51bb903 --- /dev/null +++ b/Basin/Selenium/WaitConditions.cs @@ -0,0 +1,67 @@ +using System; +using OpenQA.Selenium; + +namespace Basin.Selenium +{ + public sealed class WaitConditions + { + public static Func ElementDisplayed(IWebElement element) + { + bool Condition(IWebDriver driver) + { + return element.Displayed; + } + + return Condition; + } + + public static Func ElementIsDisplayed(IWebElement element) + { + IWebElement Condition(IWebDriver driver) + { + try + { + return element.Displayed ? element : null; + } + catch (NoSuchElementException) + { + return null; + } + catch (ElementNotVisibleException) + { + return null; + } + } + + return Condition; + } + + public static Func ElementNotDisplayed(IWebElement element) + { + bool Condition(IWebDriver driver) + { + try + { + return !element.Displayed; + } + catch (StaleElementReferenceException) + { + return true; + } + } + + return Condition; + } + + public static Func ElementsNotEmpty(Elements elements) + { + Elements Condition(IWebDriver driver) + { + var foundElements = Driver.LocateAll(elements.FoundBy); + return foundElements.IsEmpty ? null : foundElements; + } + + return Condition; + } + } +} \ No newline at end of file diff --git a/Basin/Selenium/Window.cs b/Basin/Selenium/Window.cs new file mode 100644 index 0000000..6b3e2ae --- /dev/null +++ b/Basin/Selenium/Window.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.ObjectModel; +using System.Drawing; +using OpenQA.Selenium; + + +namespace Basin.Selenium +{ + public class Window + { + public ReadOnlyCollection CurrentWindows => Driver.Current.WindowHandles; + + public static Size ScreenSize + { + get + { + var javascript = "return [window.screen.availWidth, window.screen.availHeight];"; + var javaScriptExecutor = (IJavaScriptExecutor) Driver.Current; + + dynamic dimensions = javaScriptExecutor.ExecuteScript(javascript, null); + var x = Convert.ToInt32(dimensions[0]); + var y = Convert.ToInt32(dimensions[1]); + + return new Size(x, y); + } + } + + public void SwitchTo(int windowIndex) + { + Driver.Current.SwitchTo().Window(CurrentWindows[windowIndex]); + } + + public static void Maximize() + { + Driver.Current.Manage().Window.Position = new Point(0, 0); + Driver.Current.Manage().Window.Size = ScreenSize; + } + } +} \ No newline at end of file diff --git a/JetBrains.gitignore b/JetBrains.gitignore new file mode 100644 index 0000000..8da0824 --- /dev/null +++ b/JetBrains.gitignore @@ -0,0 +1,71 @@ +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser diff --git a/VisualStudio.gitignore b/VisualStudio.gitignore new file mode 100644 index 0000000..114a799 --- /dev/null +++ b/VisualStudio.gitignore @@ -0,0 +1,357 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*[.json, .xml, .info] + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/