summaryrefslogtreecommitdiff
path: root/spec/fixtures/dotnet
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/dotnet')
-rw-r--r--spec/fixtures/dotnet/nuget-custom-tls/Program.cs12
-rw-r--r--spec/fixtures/dotnet/nuget-custom-tls/nuget-custom-tls.csproj10
-rw-r--r--spec/fixtures/dotnet/nuget-custom-tls/nuget.config7
-rw-r--r--spec/fixtures/dotnet/nuget-fsproj/Program.fs8
-rw-r--r--spec/fixtures/dotnet/nuget-fsproj/nuget-fsproj.fsproj13
-rw-r--r--spec/fixtures/dotnet/nuget-sln/app.sln84
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/domain/Library.fs5
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/domain/domain.fsproj8
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/service/Class1.cs8
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/service/service.csproj5
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/test/UnitTest1.cs14
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/test/test.csproj12
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/web/Program.cs26
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/web/Startup.cs48
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/web/web.csproj5
-rw-r--r--spec/fixtures/dotnet/nuget-transient-dependencies/Program.cs12
-rw-r--r--spec/fixtures/dotnet/nuget-transient-dependencies/nuget-transient-dependencies.csproj10
-rw-r--r--spec/fixtures/dotnet/nuget-vbproj/Program.vb7
-rw-r--r--spec/fixtures/dotnet/nuget-vbproj/nuget-vbproj.vbproj10
19 files changed, 304 insertions, 0 deletions
diff --git a/spec/fixtures/dotnet/nuget-custom-tls/Program.cs b/spec/fixtures/dotnet/nuget-custom-tls/Program.cs
new file mode 100644
index 0000000..b3376c4
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-custom-tls/Program.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace nuget_custom_tls
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ }
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-custom-tls/nuget-custom-tls.csproj b/spec/fixtures/dotnet/nuget-custom-tls/nuget-custom-tls.csproj
new file mode 100644
index 0000000..d330382
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-custom-tls/nuget-custom-tls.csproj
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ <RootNamespace>nuget_custom_tls</RootNamespace>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="jive" Version="0.1.0" />
+ </ItemGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-custom-tls/nuget.config b/spec/fixtures/dotnet/nuget-custom-tls/nuget.config
new file mode 100644
index 0000000..1dc087a
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-custom-tls/nuget.config
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <packageSources>
+ <clear />
+ <add key="custom" value="https://nuget.test/v3/index.json" />
+ </packageSources>
+</configuration>
diff --git a/spec/fixtures/dotnet/nuget-fsproj/Program.fs b/spec/fixtures/dotnet/nuget-fsproj/Program.fs
new file mode 100644
index 0000000..a7458f5
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-fsproj/Program.fs
@@ -0,0 +1,8 @@
+// Learn more about F# at http://fsharp.org
+
+open System
+
+[<EntryPoint>]
+let main argv =
+ printfn "Hello World from F#!"
+ 0 // return an integer exit code
diff --git a/spec/fixtures/dotnet/nuget-fsproj/nuget-fsproj.fsproj b/spec/fixtures/dotnet/nuget-fsproj/nuget-fsproj.fsproj
new file mode 100644
index 0000000..69f282e
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-fsproj/nuget-fsproj.fsproj
@@ -0,0 +1,13 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ <RootNamespace>nuget_fsproj</RootNamespace>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Program.fs" />
+ </ItemGroup>
+ <ItemGroup>
+ <PackageReference Include="jive" Version="0.1.0" />
+ </ItemGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-sln/app.sln b/spec/fixtures/dotnet/nuget-sln/app.sln
new file mode 100644
index 0000000..bb3f0ec
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/app.sln
@@ -0,0 +1,84 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.26124.0
+MinimumVisualStudioVersion = 15.0.26124.0
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0F21C71D-559F-410A-B313-DFD09EE9DC48}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "web", "src\web\web.csproj", "{6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "service", "src\service\service.csproj", "{26BE4B97-604F-432F-8A85-54BF99156E17}"
+EndProject
+Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "domain", "src\domain\domain.fsproj", "{23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "src\test\test.csproj", "{6253FFE1-745E-42E2-B3AB-023B9E78E033}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|x64.Build.0 = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Debug|x86.Build.0 = Debug|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|x64.ActiveCfg = Release|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|x64.Build.0 = Release|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|x86.ActiveCfg = Release|Any CPU
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE}.Release|x86.Build.0 = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|x64.Build.0 = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Debug|x86.Build.0 = Debug|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|Any CPU.Build.0 = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|x64.ActiveCfg = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|x64.Build.0 = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|x86.ActiveCfg = Release|Any CPU
+ {26BE4B97-604F-432F-8A85-54BF99156E17}.Release|x86.Build.0 = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|x64.Build.0 = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Debug|x86.Build.0 = Debug|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|x64.ActiveCfg = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|x64.Build.0 = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|x86.ActiveCfg = Release|Any CPU
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1}.Release|x86.Build.0 = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|x64.Build.0 = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Debug|x86.Build.0 = Debug|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|x64.ActiveCfg = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|x64.Build.0 = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|x86.ActiveCfg = Release|Any CPU
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {6AF97FC0-3641-4D3C-8C35-BCE1099FB2FE} = {0F21C71D-559F-410A-B313-DFD09EE9DC48}
+ {26BE4B97-604F-432F-8A85-54BF99156E17} = {0F21C71D-559F-410A-B313-DFD09EE9DC48}
+ {23E663A9-FB14-4DB1-BA73-5F4E59C38CA1} = {0F21C71D-559F-410A-B313-DFD09EE9DC48}
+ {6253FFE1-745E-42E2-B3AB-023B9E78E033} = {0F21C71D-559F-410A-B313-DFD09EE9DC48}
+ EndGlobalSection
+EndGlobal
diff --git a/spec/fixtures/dotnet/nuget-sln/src/domain/Library.fs b/spec/fixtures/dotnet/nuget-sln/src/domain/Library.fs
new file mode 100644
index 0000000..decb580
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/domain/Library.fs
@@ -0,0 +1,5 @@
+namespace domain
+
+module Say =
+ let hello name =
+ printfn "Hello %s" name
diff --git a/spec/fixtures/dotnet/nuget-sln/src/domain/domain.fsproj b/spec/fixtures/dotnet/nuget-sln/src/domain/domain.fsproj
new file mode 100644
index 0000000..951dc19
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/domain/domain.fsproj
@@ -0,0 +1,8 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="Library.fs" />
+ </ItemGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-sln/src/service/Class1.cs b/spec/fixtures/dotnet/nuget-sln/src/service/Class1.cs
new file mode 100644
index 0000000..79cc794
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/service/Class1.cs
@@ -0,0 +1,8 @@
+using System;
+
+namespace service
+{
+ public class Class1
+ {
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-sln/src/service/service.csproj b/spec/fixtures/dotnet/nuget-sln/src/service/service.csproj
new file mode 100644
index 0000000..4641dbd
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/service/service.csproj
@@ -0,0 +1,5 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ </PropertyGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-sln/src/test/UnitTest1.cs b/spec/fixtures/dotnet/nuget-sln/src/test/UnitTest1.cs
new file mode 100644
index 0000000..57a51a3
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/test/UnitTest1.cs
@@ -0,0 +1,14 @@
+using System;
+using Xunit;
+
+namespace test
+{
+ public class UnitTest1
+ {
+ [Fact]
+ public void Test1()
+ {
+
+ }
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-sln/src/test/test.csproj b/spec/fixtures/dotnet/nuget-sln/src/test/test.csproj
new file mode 100644
index 0000000..b8a2cbb
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/test/test.csproj
@@ -0,0 +1,12 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ <IsPackable>false</IsPackable>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
+ <PackageReference Include="xunit" Version="2.4.0" />
+ <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
+ <PackageReference Include="coverlet.collector" Version="1.2.0" />
+ </ItemGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs b/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs
new file mode 100644
index 0000000..b59641b
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+
+namespace web
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateHostBuilder(args).Build().Run();
+ }
+
+ public static IHostBuilder CreateHostBuilder(string[] args) =>
+ Host
+ .CreateDefaultBuilder(args)
+ .ConfigureWebHostDefaults(webBuilder => {
+ webBuilder.UseStartup<Startup>();
+ });
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-sln/src/web/Startup.cs b/spec/fixtures/dotnet/nuget-sln/src/web/Startup.cs
new file mode 100644
index 0000000..26facf4
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/web/Startup.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.HttpsPolicy;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+
+namespace web
+{
+ public class Startup
+ {
+ public Startup(IConfiguration configuration)
+ {
+ Configuration = configuration;
+ }
+
+ public IConfiguration Configuration { get; }
+
+ public void ConfigureServices(IServiceCollection services)
+ {
+ services.AddControllersWithViews();
+ }
+
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ }
+ else
+ {
+ app.UseExceptionHandler("/Home/Error");
+ app.UseHsts();
+ }
+ app.UseHttpsRedirection();
+ app.UseStaticFiles();
+ app.UseRouting();
+ app.UseAuthorization();
+ app.UseEndpoints(endpoints => {
+ endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");
+ });
+ }
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-sln/src/web/web.csproj b/spec/fixtures/dotnet/nuget-sln/src/web/web.csproj
new file mode 100644
index 0000000..a5af522
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/web/web.csproj
@@ -0,0 +1,5 @@
+<Project Sdk="Microsoft.NET.Sdk.Web">
+ <PropertyGroup>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ </PropertyGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-transient-dependencies/Program.cs b/spec/fixtures/dotnet/nuget-transient-dependencies/Program.cs
new file mode 100644
index 0000000..6deea23
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-transient-dependencies/Program.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace nuget_transient_dependencies
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ }
+ }
+}
diff --git a/spec/fixtures/dotnet/nuget-transient-dependencies/nuget-transient-dependencies.csproj b/spec/fixtures/dotnet/nuget-transient-dependencies/nuget-transient-dependencies.csproj
new file mode 100644
index 0000000..2a99a3f
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-transient-dependencies/nuget-transient-dependencies.csproj
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ <RootNamespace>nuget_transient_dependencies</RootNamespace>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="NHibernate" Version="5.2.7" />
+ </ItemGroup>
+</Project>
diff --git a/spec/fixtures/dotnet/nuget-vbproj/Program.vb b/spec/fixtures/dotnet/nuget-vbproj/Program.vb
new file mode 100644
index 0000000..46283ca
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-vbproj/Program.vb
@@ -0,0 +1,7 @@
+Imports System
+
+Module Program
+ Sub Main(args As String())
+ Console.WriteLine("Hello World!")
+ End Sub
+End Module
diff --git a/spec/fixtures/dotnet/nuget-vbproj/nuget-vbproj.vbproj b/spec/fixtures/dotnet/nuget-vbproj/nuget-vbproj.vbproj
new file mode 100644
index 0000000..6ef85bb
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-vbproj/nuget-vbproj.vbproj
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>nuget_vbproj</RootNamespace>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="jive" Version="0.1.0" />
+ </ItemGroup>
+</Project>