├── .bazelrc ├── BUILD.bazel ├── AspNetCore ├── appsettings.json ├── appsettings.Development.json ├── AspNetCore.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Controllers │ └── ValuesController.cs ├── Startup.cs ├── tmp.bazel └── BUILD.bazel ├── Utility ├── Utility.csproj ├── Utility.cs └── BUILD.bazel ├── App ├── Utils.cs ├── App.csproj ├── Program.cs └── BUILD.bazel ├── README.md ├── BazelDotnetcoreStarter.sln ├── .gitignore └── packages.json /.bazelrc: -------------------------------------------------------------------------------- 1 | #@IgnoreInspection BashAddShebang 2 | -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//:__subpackages__"]) 2 | -------------------------------------------------------------------------------- /AspNetCore/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /Utility/Utility.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AspNetCore/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /App/Utils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace App 4 | { 5 | public class Utils 6 | { 7 | public static void Print(string str) 8 | { 9 | Console.WriteLine(str); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Utility/Utility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Utility 4 | { 5 | public class Helper 6 | { 7 | public static void Print(string str) 8 | { 9 | System.Console.WriteLine(str); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /AspNetCore/AspNetCore.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.2 5 | InProcess 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /App/App.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp2.2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /App/Program.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System; 3 | using Utility; 4 | 5 | namespace App 6 | { 7 | 8 | class Greeting 9 | { 10 | public string Message { get; set; } 11 | } 12 | 13 | class Program 14 | { 15 | static void Main(string[] args) 16 | { 17 | 18 | var greeting = new Greeting() { Message = "Hello world!" }; 19 | 20 | var jsonStr = JsonConvert.SerializeObject(greeting); 21 | 22 | Utils.Print(jsonStr); 23 | 24 | Helper.Print(jsonStr); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /AspNetCore/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace AspNetCore 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | CreateWebHostBuilder(args).Build().Run(); 18 | } 19 | 20 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Utility/BUILD.bazel: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load("@io_bazel_rules_dotnet//dotnet/private:context.bzl", "core_context_data") 4 | 5 | # Context bindings 6 | core_context_data( 7 | name = "core_context_data", 8 | ) 9 | 10 | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_binary", "core_library", "dotnet_binary", "dotnet_import_library", "nuget_package") 11 | 12 | core_library( 13 | name = "utility", 14 | srcs = [ 15 | "Utility.cs" 16 | ], 17 | deps = [ 18 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", 19 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.console.dll", 20 | ], 21 | visibility = ["//visibility:public"], 22 | ) 23 | 24 | -------------------------------------------------------------------------------- /AspNetCore/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:60261", 8 | "sslPort": 44398 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "api/values", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "AspNetCore": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "api/values", 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /AspNetCore/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | 7 | namespace AspNetCore.Controllers 8 | { 9 | [Route("api/[controller]")] 10 | [ApiController] 11 | public class ValuesController : ControllerBase 12 | { 13 | // GET api/values 14 | [HttpGet] 15 | public ActionResult> Get() 16 | { 17 | return new string[] { "value1", "value2" }; 18 | } 19 | 20 | // GET api/values/5 21 | [HttpGet("{id}")] 22 | public ActionResult Get(int id) 23 | { 24 | return "value"; 25 | } 26 | 27 | // POST api/values 28 | [HttpPost] 29 | public void Post([FromBody] string value) 30 | { 31 | } 32 | 33 | // PUT api/values/5 34 | [HttpPut("{id}")] 35 | public void Put(int id, [FromBody] string value) 36 | { 37 | } 38 | 39 | // DELETE api/values/5 40 | [HttpDelete("{id}")] 41 | public void Delete(int id) 42 | { 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Bazel at Scalio](https://raw.githubusercontent.com/scalio/bazel/master/assets/scalio-bdn.svg?sanitize=true) 2 | 3 |

Bazel Dotnet-Core Starter

4 | 5 |

6 | A starter app written in C# -- built using Bazel 7 |

8 | 9 |   10 | # Issues 11 | 12 | Check out solutions for possible Windows issues here: 13 | 14 | 15 | https://github.com/scalio/bazel-dotnetcore-starter/wiki 16 | 17 |
18 |
19 | 20 | # Build and run dotnet core console app 21 | 22 | `bazel run //App:bin` 23 | 24 | # Build docker image for dotnet core console app 25 | 26 | ## Build image 27 | 28 | `bazel run //App:docker` 29 | 30 | ## Publish image 31 | 32 | `bazel run --define push_tag=${IMAGE_TAG} --define push_repository=${REPOSITORY} //App:push_container` 33 | 34 | # Build asp net core app 35 | 36 | `bazel build //AspNetCore:dll` 37 | 38 | # Build docker image for asp net core app 39 | 40 | ## Build image 41 | 42 | `bazel run //AspNetCore:docker` 43 | 44 | ## Publish image 45 | 46 | `bazel run --define push_tag=${IMAGE_TAG} --define push_repository=${REPOSITORY} //AspNetCore:push_container` 47 | 48 | ## Credits 49 | 50 | Created by [@baio](https://github.com/baio/), [@siberex](https://github.com/siberex/) @ [Scalio](https://scal.io/) 51 | 52 | 53 | ## About us 54 |

55 |
56 | 57 | 58 | 59 |
60 |

61 | -------------------------------------------------------------------------------- /AspNetCore/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Builder; 6 | using Microsoft.AspNetCore.Hosting; 7 | using Microsoft.AspNetCore.HttpsPolicy; 8 | using Microsoft.AspNetCore.Mvc; 9 | using Microsoft.Extensions.Configuration; 10 | using Microsoft.Extensions.DependencyInjection; 11 | using Microsoft.Extensions.Logging; 12 | using Microsoft.Extensions.Options; 13 | 14 | namespace AspNetCore 15 | { 16 | public class Startup 17 | { 18 | public Startup(IConfiguration configuration) 19 | { 20 | Configuration = configuration; 21 | } 22 | 23 | public IConfiguration Configuration { get; } 24 | 25 | // This method gets called by the runtime. Use this method to add services to the container. 26 | public void ConfigureServices(IServiceCollection services) 27 | { 28 | services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); 29 | } 30 | 31 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 32 | public void Configure(IApplicationBuilder app, IHostingEnvironment env) 33 | { 34 | if (env.IsDevelopment()) 35 | { 36 | app.UseDeveloperExceptionPage(); 37 | } 38 | else 39 | { 40 | // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. 41 | app.UseHsts(); 42 | } 43 | 44 | app.UseHttpsRedirection(); 45 | app.UseMvc(); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /App/BUILD.bazel: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load("@io_bazel_rules_dotnet//dotnet/private:context.bzl", "core_context_data") 4 | 5 | # Context bindings 6 | core_context_data( 7 | name = "core_context_data", 8 | ) 9 | 10 | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_binary", "core_library", "dotnet_binary", "dotnet_import_library", "nuget_package") 11 | 12 | core_binary( 13 | name = "bin", 14 | srcs = [ 15 | "Program.cs", 16 | "Utils.cs" 17 | ], 18 | deps = [ 19 | "//Utility:utility", 20 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll", 21 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", 22 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.console.dll", 23 | "@newtonsoft.json//:netcoreapp2.1_core", 24 | ], 25 | # visibility = ["//visibility:public"], 26 | ) 27 | 28 | core_library( 29 | name = "lib", 30 | srcs = [ 31 | "Program.cs", 32 | "Utils.cs" 33 | ], 34 | deps = [ 35 | "//Utility:utility", 36 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll", 37 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", 38 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.console.dll", 39 | "@newtonsoft.json//:netcoreapp2.1_core", 40 | ], 41 | visibility = ["//visibility:public"], 42 | ) 43 | 44 | # bazel build //App:docker 45 | load( 46 | "@io_bazel_rules_docker//container:container.bzl", 47 | "container_image", 48 | "container_push" 49 | ) 50 | 51 | container_image( 52 | name = "docker", 53 | # References container_pull from WORKSPACE (above) 54 | base = "@dotnet//image", 55 | files = [":lib"], 56 | entrypoint = ["dotnet", "lib.dll"] 57 | ) 58 | 59 | # bazel run --define push_tag=${IMAGE_TAG} --define push_repository=${REPOSITORY} //App:push_container 60 | container_push( 61 | name = "push_container", 62 | format = "Docker", 63 | image = ":docker", 64 | registry = "gcr.io", 65 | repository = "$(push_repository)", 66 | tag = "$(push_tag)", 67 | ) -------------------------------------------------------------------------------- /BazelDotnetcoreStarter.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.29102.190 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "App", "App\App.csproj", "{97BA95DB-30C4-4BC1-BAB0-A38A7C5803AA}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utility", "Utility\Utility.csproj", "{865B59DA-FBCB-419D-B30B-3122E29A3847}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCore", "AspNetCore\AspNetCore.csproj", "{2582095E-69DB-4A51-B87D-C9195522C5BA}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {97BA95DB-30C4-4BC1-BAB0-A38A7C5803AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {97BA95DB-30C4-4BC1-BAB0-A38A7C5803AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {97BA95DB-30C4-4BC1-BAB0-A38A7C5803AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {97BA95DB-30C4-4BC1-BAB0-A38A7C5803AA}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {865B59DA-FBCB-419D-B30B-3122E29A3847}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {865B59DA-FBCB-419D-B30B-3122E29A3847}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {865B59DA-FBCB-419D-B30B-3122E29A3847}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {865B59DA-FBCB-419D-B30B-3122E29A3847}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {2582095E-69DB-4A51-B87D-C9195522C5BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {2582095E-69DB-4A51-B87D-C9195522C5BA}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {2582095E-69DB-4A51-B87D-C9195522C5BA}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {2582095E-69DB-4A51-B87D-C9195522C5BA}.Release|Any CPU.Build.0 = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {93E3498A-C345-45B8-843D-F410C33D7ABA} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Bazel 2 | # Ignore all bazel-* symlinks 3 | /bazel-* 4 | 5 | ### JetBrains IDE 6 | .idea/ 7 | 8 | ### VisualStudio template 9 | ## Ignore Visual Studio temporary files, build results, and 10 | ## files generated by popular Visual Studio add-ons. 11 | ## 12 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 13 | 14 | # User-specific files 15 | *.rsuser 16 | *.suo 17 | *.user 18 | *.userosscache 19 | *.sln.docstates 20 | 21 | # User-specific files (MonoDevelop/Xamarin Studio) 22 | *.userprefs 23 | 24 | # Mono auto generated files 25 | mono_crash.* 26 | 27 | # Build results 28 | [Dd]ebug/ 29 | [Dd]ebugPublic/ 30 | [Rr]elease/ 31 | [Rr]eleases/ 32 | x64/ 33 | x86/ 34 | [Aa][Rr][Mm]/ 35 | [Aa][Rr][Mm]64/ 36 | bld/ 37 | [Bb]in/ 38 | [Oo]bj/ 39 | [Ll]og/ 40 | 41 | # Visual Studio 2015/2017 cache/options directory 42 | .vs/ 43 | # Uncomment if you have tasks that create the project's static files in wwwroot 44 | #wwwroot/ 45 | 46 | # Visual Studio 2017 auto generated files 47 | Generated\ Files/ 48 | 49 | # MSTest test Results 50 | [Tt]est[Rr]esult*/ 51 | [Bb]uild[Ll]og.* 52 | 53 | # NUnit 54 | *.VisualState.xml 55 | TestResult.xml 56 | nunit-*.xml 57 | 58 | # Build Results of an ATL Project 59 | [Dd]ebugPS/ 60 | [Rr]eleasePS/ 61 | dlldata.c 62 | 63 | # Benchmark Results 64 | BenchmarkDotNet.Artifacts/ 65 | 66 | # .NET Core 67 | project.lock.json 68 | project.fragment.lock.json 69 | artifacts/ 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # JustCode is a .NET coding add-in 138 | .JustCode 139 | 140 | # TeamCity is a build add-in 141 | _TeamCity* 142 | 143 | # DotCover is a Code Coverage Tool 144 | *.dotCover 145 | 146 | # AxoCover is a Code Coverage Tool 147 | .axoCover/* 148 | !.axoCover/settings.json 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide folder 360 | .ionide/ 361 | 362 | # VSCode folder 363 | .vscode/ -------------------------------------------------------------------------------- /AspNetCore/tmp.bazel: -------------------------------------------------------------------------------- 1 | "@microsoft.aspnet.webapi.client//:netcoreapp2.1_core", 2 | "@microsoft.aspnetcore//:netcoreapp2.1_core", 3 | "@microsoft.aspnetcore.antiforgery//:netcoreapp2.1_core", 4 | "@microsoft.aspnetcore.authentication//:netcoreapp2.1_core", 5 | "@microsoft.aspnetcore.authentication.abstractions//:netcoreapp2.1_core", 6 | "@microsoft.aspnetcore.authentication.cookies//:netcoreapp2.1_core", 7 | "@microsoft.aspnetcore.authentication.core//:netcoreapp2.1_core", 8 | "@microsoft.aspnetcore.authentication.facebook//:netcoreapp2.1_core", 9 | "@microsoft.aspnetcore.authentication.google//:netcoreapp2.1_core", 10 | "@microsoft.aspnetcore.authentication.jwtbearer//:netcoreapp2.1_core", 11 | "@microsoft.aspnetcore.authentication.microsoftaccount//:netcoreapp2.1_core", 12 | "@microsoft.aspnetcore.authentication.oauth//:netcoreapp2.1_core", 13 | "@microsoft.aspnetcore.authentication.openidconnect//:netcoreapp2.1_core", 14 | "@microsoft.aspnetcore.authentication.twitter//:netcoreapp2.1_core", 15 | "@microsoft.aspnetcore.authentication.wsfederation//:netcoreapp2.1_core", 16 | "@microsoft.aspnetcore.authorization//:netcoreapp2.1_core", 17 | "@microsoft.aspnetcore.authorization.policy//:netcoreapp2.1_core", 18 | "@microsoft.aspnetcore.connections.abstractions//:netcoreapp2.1_core", 19 | "@microsoft.aspnetcore.cookiepolicy//:netcoreapp2.1_core", 20 | "@microsoft.aspnetcore.cors//:netcoreapp2.1_core", 21 | "@microsoft.aspnetcore.cryptography.internal//:netcoreapp2.1_core", 22 | "@microsoft.aspnetcore.cryptography.keyderivation//:netcoreapp2.1_core", 23 | "@microsoft.aspnetcore.dataprotection//:netcoreapp2.1_core", 24 | "@microsoft.aspnetcore.dataprotection.abstractions//:netcoreapp2.1_core", 25 | "@microsoft.aspnetcore.dataprotection.extensions//:netcoreapp2.1_core", 26 | "@microsoft.aspnetcore.diagnostics//:netcoreapp2.1_core", 27 | "@microsoft.aspnetcore.diagnostics.abstractions//:netcoreapp2.1_core", 28 | "@microsoft.aspnetcore.diagnostics.entityframeworkcore//:netcoreapp2.1_core", 29 | "@microsoft.aspnetcore.diagnostics.healthchecks//:netcoreapp2.1_core", 30 | "@microsoft.aspnetcore.hostfiltering//:netcoreapp2.1_core", 31 | "@microsoft.aspnetcore.hosting//:netcoreapp2.1_core", 32 | "@microsoft.aspnetcore.hosting.abstractions//:netcoreapp2.1_core", 33 | "@microsoft.aspnetcore.hosting.server//:netcoreapp2.1_core", 34 | "@microsoft.aspnetcore.html.abstractions//:netcoreapp2.1_core", 35 | "@microsoft.aspnetcore.http//:netcoreapp2.1_core", 36 | "@microsoft.aspnetcore.http.abstractions//:netcoreapp2.1_core", 37 | "@microsoft.aspnetcore.http.connections//:netcoreapp2.1_core", 38 | "@microsoft.aspnetcore.http.connections//:netcoreapp2.1_core", 39 | "@microsoft.aspnetcore.http.extensions//:netcoreapp2.1_core", 40 | "@microsoft.aspnetcore.http.features//:netcoreapp2.1_core", 41 | "@microsoft.aspnetcore.httpoverrides//:netcoreapp2.1_core", 42 | "@microsoft.aspnetcore.httpspolicy//:netcoreapp2.1_core", 43 | "@microsoft.aspnetcore.identity//:netcoreapp2.1_core", 44 | "@microsoft.aspnetcore.identity.entityframeworkcore//:netcoreapp2.1_core", 45 | "@microsoft.aspnetcore.identity.ui//:netcoreapp2.1_core", 46 | "@microsoft.aspnetcore.jsonpatch//:netcoreapp2.1_core", 47 | "@microsoft.aspnetcore.localization//:netcoreapp2.1_core", 48 | "@microsoft.aspnetcore.localization.routing//:netcoreapp2.1_core", 49 | "@microsoft.aspnetcore.middlewareanalysis//:netcoreapp2.1_core", 50 | "@microsoft.aspnetcore.mvc//:netcoreapp2.1_core", 51 | "@microsoft.aspnetcore.mvc.abstractions//:netcoreapp2.1_core", 52 | "@microsoft.aspnetcore.mvc.analyzers//:netcoreapp2.1_core", 53 | "@microsoft.aspnetcore.mvc.apiexplorer//:netcoreapp2.1_core", 54 | "@microsoft.aspnetcore.mvc.core//:netcoreapp2.1_core", 55 | "@microsoft.aspnetcore.mvc.cors//:netcoreapp2.1_core", 56 | "@microsoft.aspnetcore.mvc.dataannotations//:netcoreapp2.1_core", 57 | "@microsoft.aspnetcore.mvc.formatters//:netcoreapp2.1_core", 58 | "@microsoft.aspnetcore.mvc.formatters//:netcoreapp2.1_core", 59 | "@microsoft.aspnetcore.mvc.localization//:netcoreapp2.1_core", 60 | "@microsoft.aspnetcore.mvc.razor//:netcoreapp2.1_core", 61 | "@microsoft.aspnetcore.mvc.razor//:netcoreapp2.1_core", 62 | "@microsoft.aspnetcore.mvc.razor//:netcoreapp2.1_core", 63 | "@microsoft.aspnetcore.mvc.razorpages//:netcoreapp2.1_core", 64 | "@microsoft.aspnetcore.mvc.taghelpers//:netcoreapp2.1_core", 65 | "@microsoft.aspnetcore.mvc.viewfeatures//:netcoreapp2.1_core", 66 | "@microsoft.aspnetcore.nodeservices//:netcoreapp2.1_core", 67 | "@microsoft.aspnetcore.owin//:netcoreapp2.1_core", 68 | "@microsoft.aspnetcore.razor//:netcoreapp2.1_core", 69 | "@microsoft.aspnetcore.razor.design//:netcoreapp2.1_core", 70 | "@microsoft.aspnetcore.razor.language//:netcoreapp2.1_core", 71 | "@microsoft.aspnetcore.razor.runtime//:netcoreapp2.1_core", 72 | "@microsoft.aspnetcore.responsecaching//:netcoreapp2.1_core", 73 | "@microsoft.aspnetcore.responsecaching.abstractions//:netcoreapp2.1_core", 74 | "@microsoft.aspnetcore.responsecompression//:netcoreapp2.1_core", 75 | "@microsoft.aspnetcore.rewrite//:netcoreapp2.1_core", 76 | "@microsoft.aspnetcore.routing//:netcoreapp2.1_core", 77 | "@microsoft.aspnetcore.routing.abstractions//:netcoreapp2.1_core", 78 | "@microsoft.aspnetcore.server.httpsys//:netcoreapp2.1_core", 79 | "@microsoft.aspnetcore.server.iis//:netcoreapp2.1_core", 80 | "@microsoft.aspnetcore.server.iisintegration//:netcoreapp2.1_core", 81 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 82 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 83 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 84 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 85 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 86 | "@microsoft.aspnetcore.session//:netcoreapp2.1_core", 87 | "@microsoft.aspnetcore.signalr//:netcoreapp2.1_core", 88 | "@microsoft.aspnetcore.signalr.common//:netcoreapp2.1_core", 89 | "@microsoft.aspnetcore.signalr.core//:netcoreapp2.1_core", 90 | "@microsoft.aspnetcore.signalr.protocols//:netcoreapp2.1_core", 91 | "@microsoft.aspnetcore.spaservices//:netcoreapp2.1_core", 92 | "@microsoft.aspnetcore.spaservices.extensions//:netcoreapp2.1_core", 93 | "@microsoft.aspnetcore.staticfiles//:netcoreapp2.1_core", 94 | "@microsoft.aspnetcore.websockets//:netcoreapp2.1_core", 95 | "@microsoft.aspnetcore.webutilities//:netcoreapp2.1_core", 96 | "@microsoft.codeanalysis.razor//:netcoreapp2.1_core", 97 | "@microsoft.entityframeworkcoreversion//:netcoreapp2.1_core", 98 | "@microsoft.entityframeworkcore.abstractions//:netcoreapp2.1_core", 99 | "@microsoft.entityframeworkcore.analyzers//:netcoreapp2.1_core", 100 | "@microsoft.entityframeworkcore.design//:netcoreapp2.1_core", 101 | "@microsoft.entityframeworkcore.inmemory//:netcoreapp2.1_core", 102 | "@microsoft.entityframeworkcore.relational//:netcoreapp2.1_core", 103 | "@microsoft.entityframeworkcore.sqlserver//:netcoreapp2.1_core", 104 | "@microsoft.entityframeworkcore.tools//:netcoreapp2.1_core", 105 | "@microsoft.extensions.caching.abstractions//:netcoreapp2.1_core", 106 | "@microsoft.extensions.caching.memory//:netcoreapp2.1_core", 107 | "@microsoft.extensions.caching.sqlserver//:netcoreapp2.1_core", 108 | "@microsoft.extensions.configuration//:netcoreapp2.1_core", 109 | "@microsoft.extensions.configuration.abstractions//:netcoreapp2.1_core", 110 | "@microsoft.extensions.configuration.binder//:netcoreapp2.1_core", 111 | "@microsoft.extensions.configuration.commandline//:netcoreapp2.1_core", 112 | "@microsoft.extensions.configuration.environmentvariables//:netcoreapp2.1_core", 113 | "@microsoft.extensions.configuration.fileextensions//:netcoreapp2.1_core", 114 | "@microsoft.extensions.configuration.ini//:netcoreapp2.1_core", 115 | "@microsoft.extensions.configuration.json//:netcoreapp2.1_core", 116 | "@microsoft.extensions.configuration.keyperfile//:netcoreapp2.1_core", 117 | "@microsoft.extensions.configuration.usersecrets//:netcoreapp2.1_core", 118 | "@microsoft.extensions.configuration.xml//:netcoreapp2.1_core", 119 | "@microsoft.extensions.dependencyinjection//:netcoreapp2.1_core", 120 | "@microsoft.extensions.dependencyinjection.abstractions//:netcoreapp2.1_core", 121 | "@microsoft.extensions.diagnosticadapter//:netcoreapp2.1_core", 122 | "@microsoft.extensions.diagnostics.healthchecks//:netcoreapp2.1_core", 123 | "@microsoft.extensions.diagnostics.healthchecks//:netcoreapp2.1_core", 124 | "@microsoft.extensions.fileproviders.abstractions//:netcoreapp2.1_core", 125 | "@microsoft.extensions.fileproviders.composite//:netcoreapp2.1_core", 126 | "@microsoft.extensions.fileproviders.embedded//:netcoreapp2.1_core", 127 | "@microsoft.extensions.fileproviders.physical//:netcoreapp2.1_core", 128 | "@microsoft.extensions.filesystemglobbing//:netcoreapp2.1_core", 129 | "@microsoft.extensions.hosting//:netcoreapp2.1_core", 130 | "@microsoft.extensions.hosting.abstractions//:netcoreapp2.1_core", 131 | "@microsoft.extensions.http//:netcoreapp2.1_core", 132 | "@microsoft.extensions.identity.core//:netcoreapp2.1_core", 133 | "@microsoft.extensions.identity.stores//:netcoreapp2.1_core", 134 | "@microsoft.extensions.localization//:netcoreapp2.1_core", 135 | "@microsoft.extensions.localization.abstractions//:netcoreapp2.1_core", 136 | "@microsoft.extensions.logging//:netcoreapp2.1_core", 137 | "@microsoft.extensions.logging.abstractions//:netcoreapp2.1_core", 138 | "@microsoft.extensions.logging.configuration//:netcoreapp2.1_core", 139 | "@microsoft.extensions.logging.console//:netcoreapp2.1_core", 140 | "@microsoft.extensions.logging.debug//:netcoreapp2.1_core", 141 | "@microsoft.extensions.logging.eventsource//:netcoreapp2.1_core", 142 | "@microsoft.extensions.logging.tracesource//:netcoreapp2.1_core", 143 | "@microsoft.extensions.objectpool//:netcoreapp2.1_core", 144 | "@microsoft.extensions.options//:netcoreapp2.1_core", 145 | "@microsoft.extensions.options.configurationextensions//:netcoreapp2.1_core", 146 | "@microsoft.extensions.options.dataannotations//:netcoreapp2.1_core", 147 | "@microsoft.extensions.primitives//:netcoreapp2.1_core", 148 | "@microsoft.extensions.webencoders//:netcoreapp2.1_core", 149 | "@microsoft.net.http.headers//:netcoreapp2.1_core", 150 | "@system.io.pipelines//:netcoreapp2.1_core", -------------------------------------------------------------------------------- /packages.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.AspNet.WebApi.Client": "5.2.7", 4 | "Microsoft.AspNetCore": "2.2.0", 5 | "Microsoft.AspNetCore.Antiforgery": "2.2.0", 6 | "Microsoft.AspNetCore.App": "2.2.0", 7 | "Microsoft.AspNetCore.Authentication": "2.2.0", 8 | "Microsoft.AspNetCore.Authentication.Abstractions": "2.2.0", 9 | "Microsoft.AspNetCore.Authentication.Cookies": "2.2.0", 10 | "Microsoft.AspNetCore.Authentication.Core": "2.2.0", 11 | "Microsoft.AspNetCore.Authentication.Facebook": "2.2.0", 12 | "Microsoft.AspNetCore.Authentication.Google": "2.2.2", 13 | "Microsoft.AspNetCore.Authentication.JwtBearer": "2.2.0", 14 | "Microsoft.AspNetCore.Authentication.MicrosoftAccount": "2.2.0", 15 | "Microsoft.AspNetCore.Authentication.OAuth": "2.2.0", 16 | "Microsoft.AspNetCore.Authentication.OpenIdConnect": "2.2.0", 17 | "Microsoft.AspNetCore.Authentication.Twitter": "2.2.0", 18 | "Microsoft.AspNetCore.Authentication.WsFederation": "2.2.0", 19 | "Microsoft.AspNetCore.Authorization": "2.2.0", 20 | "Microsoft.AspNetCore.Authorization.Policy": "2.2.0", 21 | "Microsoft.AspNetCore.Connections.Abstractions": "2.2.0", 22 | "Microsoft.AspNetCore.CookiePolicy": "2.2.0", 23 | "Microsoft.AspNetCore.Cors": "2.2.0", 24 | "Microsoft.AspNetCore.Cryptography.Internal": "2.2.0", 25 | "Microsoft.AspNetCore.Cryptography.KeyDerivation": "2.2.0", 26 | "Microsoft.AspNetCore.DataProtection": "2.2.0", 27 | "Microsoft.AspNetCore.DataProtection.Abstractions": "2.2.0", 28 | "Microsoft.AspNetCore.DataProtection.Extensions": "2.2.0", 29 | "Microsoft.AspNetCore.Diagnostics": "2.2.0", 30 | "Microsoft.AspNetCore.Diagnostics.Abstractions": "2.2.0", 31 | "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "2.2.1", 32 | "Microsoft.AspNetCore.Diagnostics.HealthChecks": "2.2.0", 33 | "Microsoft.AspNetCore.HostFiltering": "2.2.0", 34 | "Microsoft.AspNetCore.Hosting": "2.2.0", 35 | "Microsoft.AspNetCore.Hosting.Abstractions": "2.2.0", 36 | "Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.2.0", 37 | "Microsoft.AspNetCore.Html.Abstractions": "2.2.0", 38 | "Microsoft.AspNetCore.Http": "2.2.2", 39 | "Microsoft.AspNetCore.Http.Abstractions": "2.2.0", 40 | "Microsoft.AspNetCore.Http.Connections": "1.1.0", 41 | "Microsoft.AspNetCore.Http.Connections.Common": "1.1.0", 42 | "Microsoft.AspNetCore.Http.Extensions": "2.2.0", 43 | "Microsoft.AspNetCore.Http.Features": "2.2.0", 44 | "Microsoft.AspNetCore.HttpOverrides": "2.2.0", 45 | "Microsoft.AspNetCore.HttpsPolicy": "2.2.0", 46 | "Microsoft.AspNetCore.Identity": "2.2.0", 47 | "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "2.2.0", 48 | "Microsoft.AspNetCore.Identity.UI": "2.2.5", 49 | "Microsoft.AspNetCore.JsonPatch": "2.2.0", 50 | "Microsoft.AspNetCore.Localization": "2.2.0", 51 | "Microsoft.AspNetCore.Localization.Routing": "2.2.0", 52 | "Microsoft.AspNetCore.MiddlewareAnalysis": "2.2.0", 53 | "Microsoft.AspNetCore.Mvc": "2.2.0", 54 | "Microsoft.AspNetCore.Mvc.Abstractions": "2.2.0", 55 | "Microsoft.AspNetCore.Mvc.Analyzers": "2.2.0", 56 | "Microsoft.AspNetCore.Mvc.ApiExplorer": "2.2.0", 57 | "Microsoft.AspNetCore.Mvc.Core": "2.2.5", 58 | "Microsoft.AspNetCore.Mvc.Cors": "2.2.0", 59 | "Microsoft.AspNetCore.Mvc.DataAnnotations": "2.2.0", 60 | "Microsoft.AspNetCore.Mvc.Formatters.Json": "2.2.0", 61 | "Microsoft.AspNetCore.Mvc.Formatters.Xml": "2.2.0", 62 | "Microsoft.AspNetCore.Mvc.Localization": "2.2.0", 63 | "Microsoft.AspNetCore.Mvc.Razor": "2.2.0", 64 | "Microsoft.AspNetCore.Mvc.Razor.Extensions": "2.2.0", 65 | "Microsoft.AspNetCore.Mvc.Razor.ViewCompilation": "2.2.0", 66 | "Microsoft.AspNetCore.Mvc.RazorPages": "2.2.5", 67 | "Microsoft.AspNetCore.Mvc.TagHelpers": "2.2.0", 68 | "Microsoft.AspNetCore.Mvc.ViewFeatures": "2.2.0", 69 | "Microsoft.AspNetCore.NodeServices": "2.2.0", 70 | "Microsoft.AspNetCore.Owin": "2.2.0", 71 | "Microsoft.AspNetCore.Razor": "2.2.0", 72 | "Microsoft.AspNetCore.Razor.Design": "2.2.0", 73 | "Microsoft.AspNetCore.Razor.Language": "2.2.0", 74 | "Microsoft.AspNetCore.Razor.Runtime": "2.2.0", 75 | "Microsoft.AspNetCore.ResponseCaching": "2.2.0", 76 | "Microsoft.AspNetCore.ResponseCaching.Abstractions": "2.2.0", 77 | "Microsoft.AspNetCore.ResponseCompression": "2.2.0", 78 | "Microsoft.AspNetCore.Rewrite": "2.2.0", 79 | "Microsoft.AspNetCore.Routing": "2.2.2", 80 | "Microsoft.AspNetCore.Routing.Abstractions": "2.2.0", 81 | "Microsoft.AspNetCore.Server.HttpSys": "2.2.6", 82 | "Microsoft.AspNetCore.Server.IIS": "2.2.6", 83 | "Microsoft.AspNetCore.Server.IISIntegration": "2.2.1", 84 | "Microsoft.AspNetCore.Server.Kestrel": "2.2.0", 85 | "Microsoft.AspNetCore.Server.Kestrel.Core": "2.2.0", 86 | "Microsoft.AspNetCore.Server.Kestrel.Https": "2.2.0", 87 | "Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "2.2.0", 88 | "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets": "2.2.1", 89 | "Microsoft.AspNetCore.Session": "2.2.0", 90 | "Microsoft.AspNetCore.SignalR": "1.1.0", 91 | "Microsoft.AspNetCore.SignalR.Common": "1.1.0", 92 | "Microsoft.AspNetCore.SignalR.Core": "1.1.0", 93 | "Microsoft.AspNetCore.SignalR.Protocols.Json": "1.1.0", 94 | "Microsoft.AspNetCore.SpaServices": "2.2.0", 95 | "Microsoft.AspNetCore.SpaServices.Extensions": "2.2.0", 96 | "Microsoft.AspNetCore.StaticFiles": "2.2.0", 97 | "Microsoft.AspNetCore.WebSockets": "2.2.1", 98 | "Microsoft.AspNetCore.WebUtilities": "2.2.0", 99 | "Microsoft.CodeAnalysis.Analyzers": "2.9.3", 100 | "Microsoft.CodeAnalysis.Common": "2.10.0", 101 | "Microsoft.CodeAnalysis.CSharp": "2.10.0", 102 | "Microsoft.CodeAnalysis.Razor": "2.2.0", 103 | "Microsoft.CSharp": "4.5.0", 104 | "Microsoft.DiaSymReader.Native": "1.7.0", 105 | "Microsoft.DotNet.PlatformAbstractions": "2.1.0", 106 | "Microsoft.EntityFrameworkCore": "2.2.6", 107 | "Microsoft.EntityFrameworkCore.Abstractions": "2.2.6", 108 | "Microsoft.EntityFrameworkCore.Analyzers": "2.2.6", 109 | "Microsoft.EntityFrameworkCore.Design": "2.2.6", 110 | "Microsoft.EntityFrameworkCore.InMemory": "2.2.6", 111 | "Microsoft.EntityFrameworkCore.Relational": "2.2.6", 112 | "Microsoft.EntityFrameworkCore.SqlServer": "2.2.6", 113 | "Microsoft.EntityFrameworkCore.Tools": "2.2.6", 114 | "Microsoft.Extensions.Caching.Abstractions": "2.2.0", 115 | "Microsoft.Extensions.Caching.Memory": "2.2.0", 116 | "Microsoft.Extensions.Caching.SqlServer": "2.2.0", 117 | "Microsoft.Extensions.Configuration": "2.2.0", 118 | "Microsoft.Extensions.Configuration.Abstractions": "2.2.0", 119 | "Microsoft.Extensions.Configuration.Binder": "2.2.4", 120 | "Microsoft.Extensions.Configuration.CommandLine": "2.2.0", 121 | "Microsoft.Extensions.Configuration.EnvironmentVariables": "2.2.4", 122 | "Microsoft.Extensions.Configuration.FileExtensions": "2.2.0", 123 | "Microsoft.Extensions.Configuration.Ini": "2.2.0", 124 | "Microsoft.Extensions.Configuration.Json": "2.2.0", 125 | "Microsoft.Extensions.Configuration.KeyPerFile": "2.2.4", 126 | "Microsoft.Extensions.Configuration.UserSecrets": "2.2.0", 127 | "Microsoft.Extensions.Configuration.Xml": "2.2.0", 128 | "Microsoft.Extensions.DependencyInjection": "2.2.0", 129 | "Microsoft.Extensions.DependencyInjection.Abstractions": "2.2.0", 130 | "Microsoft.Extensions.DependencyModel": "2.1.0", 131 | "Microsoft.Extensions.DiagnosticAdapter": "2.2.0", 132 | "Microsoft.Extensions.Diagnostics.HealthChecks": "2.2.5", 133 | "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions": "2.2.0", 134 | "Microsoft.Extensions.FileProviders.Abstractions": "2.2.0", 135 | "Microsoft.Extensions.FileProviders.Composite": "2.2.0", 136 | "Microsoft.Extensions.FileProviders.Embedded": "2.2.0", 137 | "Microsoft.Extensions.FileProviders.Physical": "2.2.0", 138 | "Microsoft.Extensions.FileSystemGlobbing": "2.2.0", 139 | "Microsoft.Extensions.Hosting": "2.2.0", 140 | "Microsoft.Extensions.Hosting.Abstractions": "2.2.0", 141 | "Microsoft.Extensions.Http": "2.2.0", 142 | "Microsoft.Extensions.Identity.Core": "2.2.0", 143 | "Microsoft.Extensions.Identity.Stores": "2.2.0", 144 | "Microsoft.Extensions.Localization": "2.2.0", 145 | "Microsoft.Extensions.Localization.Abstractions": "2.2.0", 146 | "Microsoft.Extensions.Logging": "2.2.0", 147 | "Microsoft.Extensions.Logging.Abstractions": "2.2.0", 148 | "Microsoft.Extensions.Logging.Configuration": "2.2.0", 149 | "Microsoft.Extensions.Logging.Console": "2.2.0", 150 | "Microsoft.Extensions.Logging.Debug": "2.2.0", 151 | "Microsoft.Extensions.Logging.EventSource": "2.2.0", 152 | "Microsoft.Extensions.Logging.TraceSource": "2.2.0", 153 | "Microsoft.Extensions.ObjectPool": "2.2.0", 154 | "Microsoft.Extensions.Options": "2.2.0", 155 | "Microsoft.Extensions.Options.ConfigurationExtensions": "2.2.0", 156 | "Microsoft.Extensions.Options.DataAnnotations": "2.2.0", 157 | "Microsoft.Extensions.Primitives": "2.2.0", 158 | "Microsoft.Extensions.WebEncoders": "2.2.0", 159 | "Microsoft.IdentityModel.JsonWebTokens": "5.5.0", 160 | "Microsoft.IdentityModel.Logging": "5.5.0", 161 | "Microsoft.IdentityModel.Protocols": "5.5.0", 162 | "Microsoft.IdentityModel.Protocols.OpenIdConnect": "5.5.0", 163 | "Microsoft.IdentityModel.Protocols.WsFederation": "5.5.0", 164 | "Microsoft.IdentityModel.Tokens": "5.5.0", 165 | "Microsoft.IdentityModel.Tokens.Saml": "5.5.0", 166 | "Microsoft.IdentityModel.Xml": "5.5.0", 167 | "Microsoft.Net.Http.Headers": "2.2.0", 168 | "Microsoft.Win32.Registry": "4.5.0", 169 | "Newtonsoft.Json": "12.0.2", 170 | "Newtonsoft.Json.Bson": "1.0.2", 171 | "Remotion.Linq": "2.2.0", 172 | "System.AppContext": "4.3.0", 173 | "System.Buffers": "4.5.0", 174 | "System.Collections": "4.3.0", 175 | "System.Collections.Concurrent": "4.3.0", 176 | "System.Collections.Immutable": "1.5.0", 177 | "System.ComponentModel.Annotations": "4.5.0", 178 | "System.Console": "4.3.1", 179 | "System.Data.SqlClient": "4.6.1", 180 | "System.Diagnostics.Debug": "4.3.0", 181 | "System.Diagnostics.DiagnosticSource": "4.5.1", 182 | "System.Diagnostics.FileVersionInfo": "4.3.0", 183 | "System.Diagnostics.StackTrace": "4.3.0", 184 | "System.Diagnostics.Tools": "4.3.0", 185 | "System.Dynamic.Runtime": "4.3.0", 186 | "System.Globalization": "4.3.0", 187 | "System.IdentityModel.Tokens.Jwt": "5.5.0", 188 | "System.Interactive.Async": "3.2.0", 189 | "System.IO": "4.3.0", 190 | "System.IO.Compression": "4.3.0", 191 | "System.IO.FileSystem": "4.3.0", 192 | "System.IO.FileSystem.Primitives": "4.3.0", 193 | "System.IO.Pipelines": "4.5.3", 194 | "System.Linq": "4.3.0", 195 | "System.Linq.Expressions": "4.3.0", 196 | "System.Memory": "4.5.3", 197 | "System.Net.WebSockets.WebSocketProtocol": "4.5.3", 198 | "System.Numerics.Vectors": "4.5.0", 199 | "System.Reflection": "4.3.0", 200 | "System.Reflection.Emit": "4.3.0", 201 | "System.Reflection.Metadata": "1.6.0", 202 | "System.Resources.ResourceManager": "4.3.0", 203 | "System.Runtime": "4.3.1", 204 | "System.Runtime.CompilerServices.Unsafe": "4.5.2", 205 | "System.Runtime.Extensions": "4.3.1", 206 | "System.Runtime.InteropServices": "4.3.0", 207 | "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", 208 | "System.Runtime.Numerics": "4.3.0", 209 | "System.Security.AccessControl": "4.5.0", 210 | "System.Security.Cryptography.Algorithms": "4.3.1", 211 | "System.Security.Cryptography.Cng": "4.5.0", 212 | "System.Security.Cryptography.Encoding": "4.3.0", 213 | "System.Security.Cryptography.Primitives": "4.3.0", 214 | "System.Security.Cryptography.X509Certificates": "4.3.2", 215 | "System.Security.Cryptography.Xml": "4.5.0", 216 | "System.Security.Permissions": "4.5.0", 217 | "System.Security.Principal.Windows": "4.5.1", 218 | "System.Text.Encoding": "4.3.0", 219 | "System.Text.Encoding.CodePages": "4.5.1", 220 | "System.Text.Encoding.Extensions": "4.3.0", 221 | "System.Text.Encodings.Web": "4.5.0", 222 | "System.Threading": "4.3.0", 223 | "System.Threading.Channels": "4.5.0", 224 | "System.Threading.Tasks": "4.3.0", 225 | "System.Threading.Tasks.Extensions": "4.5.3", 226 | "System.Threading.Tasks.Parallel": "4.3.0", 227 | "System.Threading.Thread": "4.3.0", 228 | "System.ValueTuple": "4.5.0", 229 | "System.Xml.ReaderWriter": "4.3.1", 230 | "System.Xml.XDocument": "4.3.0", 231 | "System.Xml.XmlDocument": "4.3.0", 232 | "System.Xml.XPath": "4.3.0", 233 | "System.Xml.XPath.XDocument": "4.3.0" 234 | } 235 | } -------------------------------------------------------------------------------- /AspNetCore/BUILD.bazel: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load("@io_bazel_rules_dotnet//dotnet/private:context.bzl", "core_context_data") 4 | 5 | # Context bindings 6 | core_context_data( 7 | name = "core_context_data", 8 | ) 9 | 10 | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_binary", "core_library", "dotnet_binary", "dotnet_import_library", "nuget_package") 11 | 12 | core_library( 13 | name = "lib", 14 | srcs = [ 15 | "Program.cs", 16 | "Startup.cs", 17 | "Controllers/ValuesController.cs", 18 | ], 19 | deps = [ 20 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll", 21 | "@io_bazel_rules_dotnet//dotnet/stdlib.core:system.dll", 22 | "@microsoft.aspnet.webapi.client//:netcoreapp2.1_core", 23 | "@microsoft.aspnetcore//:netcoreapp2.1_core", 24 | "@microsoft.aspnetcore.antiforgery//:netcoreapp2.1_core", 25 | "@microsoft.aspnetcore.authentication//:netcoreapp2.1_core", 26 | "@microsoft.aspnetcore.authentication.abstractions//:netcoreapp2.1_core", 27 | "@microsoft.aspnetcore.authentication.cookies//:netcoreapp2.1_core", 28 | "@microsoft.aspnetcore.authentication.core//:netcoreapp2.1_core", 29 | "@microsoft.aspnetcore.authentication.facebook//:netcoreapp2.1_core", 30 | "@microsoft.aspnetcore.authentication.google//:netcoreapp2.1_core", 31 | "@microsoft.aspnetcore.authentication.jwtbearer//:netcoreapp2.1_core", 32 | "@microsoft.aspnetcore.authentication.microsoftaccount//:netcoreapp2.1_core", 33 | "@microsoft.aspnetcore.authentication.oauth//:netcoreapp2.1_core", 34 | "@microsoft.aspnetcore.authentication.openidconnect//:netcoreapp2.1_core", 35 | "@microsoft.aspnetcore.authentication.twitter//:netcoreapp2.1_core", 36 | "@microsoft.aspnetcore.authentication.wsfederation//:netcoreapp2.1_core", 37 | "@microsoft.aspnetcore.authorization//:netcoreapp2.1_core", 38 | "@microsoft.aspnetcore.authorization.policy//:netcoreapp2.1_core", 39 | "@microsoft.aspnetcore.connections.abstractions//:netcoreapp2.1_core", 40 | "@microsoft.aspnetcore.cookiepolicy//:netcoreapp2.1_core", 41 | "@microsoft.aspnetcore.cors//:netcoreapp2.1_core", 42 | "@microsoft.aspnetcore.cryptography.internal//:netcoreapp2.1_core", 43 | "@microsoft.aspnetcore.cryptography.keyderivation//:netcoreapp2.1_core", 44 | "@microsoft.aspnetcore.dataprotection//:netcoreapp2.1_core", 45 | "@microsoft.aspnetcore.dataprotection.abstractions//:netcoreapp2.1_core", 46 | "@microsoft.aspnetcore.dataprotection.extensions//:netcoreapp2.1_core", 47 | "@microsoft.aspnetcore.diagnostics//:netcoreapp2.1_core", 48 | "@microsoft.aspnetcore.diagnostics.abstractions//:netcoreapp2.1_core", 49 | "@microsoft.aspnetcore.diagnostics.entityframeworkcore//:netcoreapp2.1_core", 50 | "@microsoft.aspnetcore.diagnostics.healthchecks//:netcoreapp2.1_core", 51 | "@microsoft.aspnetcore.hostfiltering//:netcoreapp2.1_core", 52 | "@microsoft.aspnetcore.hosting//:netcoreapp2.1_core", 53 | "@microsoft.aspnetcore.hosting.abstractions//:netcoreapp2.1_core", 54 | "@microsoft.aspnetcore.hosting.server.abstractions//:netcoreapp2.1_core", 55 | "@microsoft.aspnetcore.html.abstractions//:netcoreapp2.1_core", 56 | "@microsoft.aspnetcore.http//:netcoreapp2.1_core", 57 | "@microsoft.aspnetcore.http.abstractions//:netcoreapp2.1_core", 58 | "@microsoft.aspnetcore.http.connections//:netcoreapp2.1_core", 59 | "@microsoft.aspnetcore.http.connections.common//:netcoreapp2.1_core", 60 | "@microsoft.aspnetcore.http.extensions//:netcoreapp2.1_core", 61 | "@microsoft.aspnetcore.http.features//:netcoreapp2.1_core", 62 | "@microsoft.aspnetcore.httpoverrides//:netcoreapp2.1_core", 63 | "@microsoft.aspnetcore.httpspolicy//:netcoreapp2.1_core", 64 | "@microsoft.aspnetcore.identity//:netcoreapp2.1_core", 65 | "@microsoft.aspnetcore.identity.entityframeworkcore//:netcoreapp2.1_core", 66 | "@microsoft.aspnetcore.identity.ui//:netcoreapp2.1_core", 67 | "@microsoft.aspnetcore.jsonpatch//:netcoreapp2.1_core", 68 | "@microsoft.aspnetcore.localization//:netcoreapp2.1_core", 69 | "@microsoft.aspnetcore.localization.routing//:netcoreapp2.1_core", 70 | "@microsoft.aspnetcore.middlewareanalysis//:netcoreapp2.1_core", 71 | "@microsoft.aspnetcore.mvc//:netcoreapp2.1_core", 72 | "@microsoft.aspnetcore.mvc.abstractions//:netcoreapp2.1_core", 73 | #"@microsoft.aspnetcore.mvc.analyzers//:netcoreapp2.1_core", 74 | "@microsoft.aspnetcore.mvc.apiexplorer//:netcoreapp2.1_core", 75 | "@microsoft.aspnetcore.mvc.core//:netcoreapp2.1_core", 76 | "@microsoft.aspnetcore.mvc.cors//:netcoreapp2.1_core", 77 | "@microsoft.aspnetcore.mvc.dataannotations//:netcoreapp2.1_core", 78 | "@microsoft.aspnetcore.mvc.formatters.json//:netcoreapp2.1_core", 79 | "@microsoft.aspnetcore.mvc.formatters.xml//:netcoreapp2.1_core", 80 | "@microsoft.aspnetcore.mvc.localization//:netcoreapp2.1_core", 81 | "@microsoft.aspnetcore.mvc.razor//:netcoreapp2.1_core", 82 | "@microsoft.aspnetcore.mvc.razor.extensions//:netcoreapp2.1_core", 83 | #"@microsoft.aspnetcore.mvc.razor.viewcompilation//:netcoreapp2.1_core", 84 | "@microsoft.aspnetcore.mvc.razorpages//:netcoreapp2.1_core", 85 | "@microsoft.aspnetcore.mvc.taghelpers//:netcoreapp2.1_core", 86 | "@microsoft.aspnetcore.mvc.viewfeatures//:netcoreapp2.1_core", 87 | "@microsoft.aspnetcore.nodeservices//:netcoreapp2.1_core", 88 | "@microsoft.aspnetcore.owin//:netcoreapp2.1_core", 89 | "@microsoft.aspnetcore.razor//:netcoreapp2.1_core", 90 | "@microsoft.aspnetcore.razor.design//:netcoreapp2.1_core", 91 | "@microsoft.aspnetcore.razor.language//:netcoreapp2.1_core", 92 | "@microsoft.aspnetcore.razor.runtime//:netcoreapp2.1_core", 93 | "@microsoft.aspnetcore.responsecaching//:netcoreapp2.1_core", 94 | "@microsoft.aspnetcore.responsecaching.abstractions//:netcoreapp2.1_core", 95 | "@microsoft.aspnetcore.responsecompression//:netcoreapp2.1_core", 96 | "@microsoft.aspnetcore.rewrite//:netcoreapp2.1_core", 97 | "@microsoft.aspnetcore.routing//:netcoreapp2.1_core", 98 | "@microsoft.aspnetcore.routing.abstractions//:netcoreapp2.1_core", 99 | "@microsoft.aspnetcore.server.httpsys//:netcoreapp2.1_core", 100 | "@microsoft.aspnetcore.server.iis//:netcoreapp2.1_core", 101 | "@microsoft.aspnetcore.server.iisintegration//:netcoreapp2.1_core", 102 | "@microsoft.aspnetcore.server.kestrel//:netcoreapp2.1_core", 103 | "@microsoft.aspnetcore.server.kestrel.core//:netcoreapp2.1_core", 104 | "@microsoft.aspnetcore.server.kestrel.https//:netcoreapp2.1_core", 105 | "@microsoft.aspnetcore.server.kestrel.transport.abstractions//:netcoreapp2.1_core", 106 | "@microsoft.aspnetcore.server.kestrel.transport.sockets//:netcoreapp2.1_core", 107 | "@microsoft.aspnetcore.session//:netcoreapp2.1_core", 108 | "@microsoft.aspnetcore.signalr//:netcoreapp2.1_core", 109 | "@microsoft.aspnetcore.signalr.common//:netcoreapp2.1_core", 110 | "@microsoft.aspnetcore.signalr.core//:netcoreapp2.1_core", 111 | "@microsoft.aspnetcore.signalr.protocols.json//:netcoreapp2.1_core", 112 | "@microsoft.aspnetcore.spaservices//:netcoreapp2.1_core", 113 | "@microsoft.aspnetcore.spaservices.extensions//:netcoreapp2.1_core", 114 | "@microsoft.aspnetcore.staticfiles//:netcoreapp2.1_core", 115 | "@microsoft.aspnetcore.websockets//:netcoreapp2.1_core", 116 | "@microsoft.aspnetcore.webutilities//:netcoreapp2.1_core", 117 | "@microsoft.codeanalysis.razor//:netcoreapp2.1_core", 118 | "@microsoft.entityframeworkcore//:netcoreapp2.1_core", 119 | "@microsoft.entityframeworkcore.abstractions//:netcoreapp2.1_core", 120 | # "@microsoft.entityframeworkcore.analyzers//:netcoreapp2.1_core", 121 | "@microsoft.entityframeworkcore.design//:netcoreapp2.1_core", 122 | "@microsoft.entityframeworkcore.inmemory//:netcoreapp2.1_core", 123 | "@microsoft.entityframeworkcore.relational//:netcoreapp2.1_core", 124 | "@microsoft.entityframeworkcore.sqlserver//:netcoreapp2.1_core", 125 | "@microsoft.entityframeworkcore.tools//:netcoreapp2.1_core", 126 | "@microsoft.extensions.caching.abstractions//:netcoreapp2.1_core", 127 | "@microsoft.extensions.caching.memory//:netcoreapp2.1_core", 128 | "@microsoft.extensions.caching.sqlserver//:netcoreapp2.1_core", 129 | "@microsoft.extensions.configuration//:netcoreapp2.1_core", 130 | "@microsoft.extensions.configuration.abstractions//:netcoreapp2.1_core", 131 | "@microsoft.extensions.configuration.binder//:netcoreapp2.1_core", 132 | "@microsoft.extensions.configuration.commandline//:netcoreapp2.1_core", 133 | "@microsoft.extensions.configuration.environmentvariables//:netcoreapp2.1_core", 134 | "@microsoft.extensions.configuration.fileextensions//:netcoreapp2.1_core", 135 | "@microsoft.extensions.configuration.ini//:netcoreapp2.1_core", 136 | "@microsoft.extensions.configuration.json//:netcoreapp2.1_core", 137 | "@microsoft.extensions.configuration.keyperfile//:netcoreapp2.1_core", 138 | "@microsoft.extensions.configuration.usersecrets//:netcoreapp2.1_core", 139 | "@microsoft.extensions.configuration.xml//:netcoreapp2.1_core", 140 | "@microsoft.extensions.dependencyinjection//:netcoreapp2.1_core", 141 | "@microsoft.extensions.dependencyinjection.abstractions//:netcoreapp2.1_core", 142 | "@microsoft.extensions.diagnosticadapter//:netcoreapp2.1_core", 143 | "@microsoft.extensions.diagnostics.healthchecks//:netcoreapp2.1_core", 144 | "@microsoft.extensions.diagnostics.healthchecks.abstractions//:netcoreapp2.1_core", 145 | "@microsoft.extensions.fileproviders.abstractions//:netcoreapp2.1_core", 146 | "@microsoft.extensions.fileproviders.composite//:netcoreapp2.1_core", 147 | "@microsoft.extensions.fileproviders.embedded//:netcoreapp2.1_core", 148 | "@microsoft.extensions.fileproviders.physical//:netcoreapp2.1_core", 149 | "@microsoft.extensions.filesystemglobbing//:netcoreapp2.1_core", 150 | "@microsoft.extensions.hosting//:netcoreapp2.1_core", 151 | "@microsoft.extensions.hosting.abstractions//:netcoreapp2.1_core", 152 | "@microsoft.extensions.http//:netcoreapp2.1_core", 153 | "@microsoft.extensions.identity.core//:netcoreapp2.1_core", 154 | "@microsoft.extensions.identity.stores//:netcoreapp2.1_core", 155 | "@microsoft.extensions.localization//:netcoreapp2.1_core", 156 | "@microsoft.extensions.localization.abstractions//:netcoreapp2.1_core", 157 | "@microsoft.extensions.logging//:netcoreapp2.1_core", 158 | "@microsoft.extensions.logging.abstractions//:netcoreapp2.1_core", 159 | "@microsoft.extensions.logging.configuration//:netcoreapp2.1_core", 160 | "@microsoft.extensions.logging.console//:netcoreapp2.1_core", 161 | "@microsoft.extensions.logging.debug//:netcoreapp2.1_core", 162 | "@microsoft.extensions.logging.eventsource//:netcoreapp2.1_core", 163 | "@microsoft.extensions.logging.tracesource//:netcoreapp2.1_core", 164 | "@microsoft.extensions.objectpool//:netcoreapp2.1_core", 165 | "@microsoft.extensions.options//:netcoreapp2.1_core", 166 | "@microsoft.extensions.options.configurationextensions//:netcoreapp2.1_core", 167 | "@microsoft.extensions.options.dataannotations//:netcoreapp2.1_core", 168 | "@microsoft.extensions.primitives//:netcoreapp2.1_core", 169 | "@microsoft.extensions.webencoders//:netcoreapp2.1_core", 170 | "@microsoft.net.http.headers//:netcoreapp2.1_core", 171 | "@system.io.pipelines//:netcoreapp2.1_core", 172 | ], 173 | visibility = ["//visibility:public"], 174 | ) 175 | 176 | # bazel build //AspNetCore:docker 177 | load( 178 | "@io_bazel_rules_docker//container:container.bzl", 179 | "container_image", 180 | "container_push" 181 | ) 182 | 183 | container_image( 184 | name = "docker", 185 | # References container_pull from WORKSPACE (above) 186 | base = "@aspnetcore//image", 187 | files = [":lib"], 188 | entrypoint = ["dotnet", "lib.dll"] 189 | ) 190 | 191 | # bazel run --define push_tag=${IMAGE_TAG} --define push_repository=${REPOSITORY} //AspNetCore:push_container 192 | container_push( 193 | name = "push_container", 194 | format = "Docker", 195 | image = ":docker", 196 | registry = "gcr.io", 197 | repository = "$(push_repository)", 198 | tag = "$(push_tag)", 199 | ) --------------------------------------------------------------------------------