Skip to content

Commit e204494

Browse files
committed
Move to proper structure for a sln/proj
We might need some extensions to make things easier for the simpler dotnet-run scenario, so we add a a proper project for that.
1 parent f43355c commit e204494

File tree

14 files changed

+45
-7
lines changed

14 files changed

+45
-7
lines changed

.netconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
etag = 2c6335b37e4ae05eea7c01f5d0c9d82b49c488f868a8b5ba7bff7c6ff01f3994
1212
weak
13-
[file "Directory.Build.props"]
13+
[file "src/Directory.Build.props"]
1414
url = https://github.com/devlooped/oss/tree/main/src/Directory.Build.props
1515
sha = 2fff747a9673b499c99f2da183cdd5263fdc9333
1616

1717
etag = 0fccddf04f282fe98122ab2610dc2972c205a521254559bf013655c6271b0017
1818
weak
19-
[file "Directory.Build.targets"]
19+
[file "src/Directory.Build.targets"]
2020
url = https://github.com/devlooped/oss/tree/main/src/Directory.Build.targets
2121
sha = a8b208093599263b7f2d1fe3854634c588ea5199
2222

Smith.slnx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Solution>
2+
<Project Path="src/Smith.Extensions/Smith.Extensions.csproj" />
3+
<Project Path="src/Smith/Smith.msbuildproj" Type="13b669be-bb05-4ddf-9536-439f39a36129" />
4+
</Solution>

assets/icon.png

1.12 KB
Loading

assets/icon.svg

Lines changed: 8 additions & 0 deletions
Loading

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
An opinionated meta-package for doing AI agents using Microsoft.Extensions.AI and MCP and dotnet run file.
1+
![Icon](assets/icon.png) Smith
2+
============
23

34
[![Version](https://img.shields.io/nuget/vpre/Smith.svg?color=royalblue)](https://www.nuget.org/packages/Smith)
45
[![Downloads](https://img.shields.io/nuget/dt/Smith.svg?color=green)](https://www.nuget.org/packages/Smith)
56
[![License](https://img.shields.io/github/license/devlooped/Smith.svg?color=blue)](https://github.com//devlooped/Smith/blob/main/license.txt)
67
[![Build](https://github.com/devlooped/Smith/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/devlooped/Smith/actions)
78

9+
<!-- #content -->
10+
11+
An opinionated meta-package for doing AI agents using Microsoft.Extensions.AI and MCP and dotnet run file.
12+
813
Example Claude-based agent:
914

1015
![](https://raw.githubusercontent.com/devlooped/smith/main/assets/run.png)
@@ -15,8 +20,8 @@ Example Claude-based agent:
1520
var configuration = new ConfigurationBuilder()
1621
.AddEnvironmentVariables()
1722
.AddUserSecrets()
18-
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
19-
.AddIniFile("appsettings.ini", optional: true, reloadOnChange: true)
23+
.AddJsonFile("appsettings.json", optional: true)
24+
.AddIniFile("appsettings.ini", optional: true)
2025
.Build();
2126

2227
var services = new ServiceCollection();
File renamed without changes.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="NuGetizer" Version="1.2.4" />
9+
</ItemGroup>
10+
11+
</Project>

Smith.msbuildproj renamed to src/Smith/Smith.msbuildproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.5.0" />
2020
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.5" />
2121
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.0-preview.4.25258.110" />
22-
<PackageReference Include="NuGetizer" Version="1.2.4" PrivateAssets="all" Pack="false" />
22+
<PackageReference Include="NuGetizer" Version="1.2.4" />
2323
<PackageReference Include="Anthropic" Version="3.6.0" />
2424
<PackageReference Include="Spectre.Console" Version="0.50.0" />
2525
<PackageReference Include="Spectre.Console.Json" Version="0.50.0" />
@@ -28,6 +28,13 @@
2828
<ItemGroup>
2929
<None Update="Smith.props" PackFolder="build" />
3030
<None Update="Smith.targets" PackFolder="build" />
31-
<Content Include="cs\AddUserSecrets.cs" Pack="true" BuildAction="Compile" />
31+
<Content Include="cs\*.cs" Pack="true" BuildAction="Compile" />
32+
</ItemGroup>
33+
<ItemGroup>
34+
<None Include="Smith.props" />
35+
<None Include="Smith.targets" />
36+
</ItemGroup>
37+
<ItemGroup>
38+
<ProjectReference Include="..\Smith.Extensions\Smith.Extensions.csproj" />
3239
</ItemGroup>
3340
</Project>
File renamed without changes.

0 commit comments

Comments
 (0)