This commit is contained in:
2026-04-15 23:18:12 -04:00
commit 0386577b8c
9 changed files with 147 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
bin/
obj/
.generated/
.vs/

43
.vscode/launch.json vendored Normal file
View 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
View File

@@ -0,0 +1 @@
{}

41
.vscode/tasks.json vendored Normal file
View 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"
}
]
}

View 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>

View 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
View File

@@ -0,0 +1,4 @@
<Solution>
<Project Path="StructuralInstance.Test/StructuralInstance.Test.csproj" />
<Project Path="StructuralInstance/StructuralInstance.csproj" />
</Solution>

View File

@@ -0,0 +1,6 @@
namespace StructuralInstance;
public class Class1
{
public string Test = "Hello Month";
}

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>