init
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
.generated/
|
||||||
|
.vs/
|
||||||
43
.vscode/launch.json
vendored
Normal file
43
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": ".NET Core Launch (console)",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"WARNING01": "*********************************************************************************",
|
||||||
|
"WARNING02": "The C# extension was unable to automatically decode projects in the current",
|
||||||
|
"WARNING03": "workspace to create a runnable launch.json file. A template launch.json file has",
|
||||||
|
"WARNING04": "been created as a placeholder.",
|
||||||
|
"WARNING05": "",
|
||||||
|
"WARNING06": "If the server is currently unable to load your project, you can attempt to",
|
||||||
|
"WARNING07": "resolve this by restoring any missing project dependencies (example: run 'dotnet",
|
||||||
|
"WARNING08": "restore') and by fixing any reported errors from building the projects in your",
|
||||||
|
"WARNING09": "workspace.",
|
||||||
|
"WARNING10": "If this allows the server to now load your project then --",
|
||||||
|
"WARNING11": " * Delete this file",
|
||||||
|
"WARNING12": " * Open the Visual Studio Code command palette (View->Command Palette)",
|
||||||
|
"WARNING13": " * run the command: '.NET: Generate Assets for Build and Debug'.",
|
||||||
|
"WARNING14": "",
|
||||||
|
"WARNING15": "If your project requires a more complex launch configuration, you may wish to",
|
||||||
|
"WARNING16": "delete this configuration and pick a different template using the 'Add",
|
||||||
|
"WARNING17": "Configuration...' button at the bottom of this file.",
|
||||||
|
"WARNING18": "*********************************************************************************",
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
"program": "${workspaceFolder}/StructuralInstance.Test/bin/Debug/net10.0/StructuralInstance.Test.dll",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"console": "internalConsole",
|
||||||
|
"stopAtEntry": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": ".NET Core Attach",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "attach"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
.vscode/settings.json
vendored
Normal file
1
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
41
.vscode/tasks.json
vendored
Normal file
41
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "build",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"${workspaceFolder}/StructuralInstance/StructuralInstance.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "publish",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"publish",
|
||||||
|
"${workspaceFolder}/StructuralInstance/StructuralInstance.csproj",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "watch",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"run",
|
||||||
|
"--project",
|
||||||
|
"${workspaceFolder}/StructuralInstance/StructuralInstance.csproj"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
26
StructuralInstance.Test/StructuralInstance.Test.csproj
Normal file
26
StructuralInstance.Test/StructuralInstance.Test.csproj
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="coverlet.collector" Version="6.0.4" />
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
|
||||||
|
<PackageReference Include="Shouldly" Version="4.3.0" />
|
||||||
|
<PackageReference Include="xunit" Version="2.9.3" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Using Include="Xunit" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\StructuralInstance\StructuralInstance.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
13
StructuralInstance.Test/UnitTest1.cs
Normal file
13
StructuralInstance.Test/UnitTest1.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using Shouldly;
|
||||||
|
|
||||||
|
namespace StructuralInstance.Test;
|
||||||
|
|
||||||
|
public class UnitTest1
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Test1()
|
||||||
|
{
|
||||||
|
var c = new Class1();
|
||||||
|
c.Test.ShouldBe("Hello Month");
|
||||||
|
}
|
||||||
|
}
|
||||||
4
StructuralInstance.slnx
Normal file
4
StructuralInstance.slnx
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<Solution>
|
||||||
|
<Project Path="StructuralInstance.Test/StructuralInstance.Test.csproj" />
|
||||||
|
<Project Path="StructuralInstance/StructuralInstance.csproj" />
|
||||||
|
</Solution>
|
||||||
6
StructuralInstance/Class1.cs
Normal file
6
StructuralInstance/Class1.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace StructuralInstance;
|
||||||
|
|
||||||
|
public class Class1
|
||||||
|
{
|
||||||
|
public string Test = "Hello Month";
|
||||||
|
}
|
||||||
9
StructuralInstance/StructuralInstance.csproj
Normal file
9
StructuralInstance/StructuralInstance.csproj
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user