Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/agents/sdk-consumer-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Goal

Help a consuming repository adopt or troubleshoot `Purview.DotNetProjectSdk` correctly, without breaking existing build behaviour.
Help a consuming repository adopt or troubleshoot `Purview.BuildSdk` correctly, without breaking existing build behaviour.

## Workflow

1. Confirm the SDK is imported in `Directory.Build.props`/`Directory.Build.targets` via
`<Import Sdk="Purview.DotNetProjectSdk" Project="Sdk.props" />` and the matching `Sdk.targets` import.
`<Import Sdk="Purview.BuildSdk" Project="Sdk.props" />` and the matching `Sdk.targets` import.
2. Check pre-import bootstrap properties are set **before** the `Sdk.props` import when they must affect
evaluation: `NamespacePrefix`, `UsePackageJsonVersion`, `RootPackageJson`.
3. If version resolution looks wrong, verify `package.json` discovery: explicit `RootPackageJson`, then CI
Expand Down
2 changes: 1 addition & 1 deletion .agents/prompts/sdk-diagnose-agent-folder-copy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sdk-diagnose-agent-folder-copy (generic prompt spec)

Diagnose why the bundled `.agents/**` folder from `Purview.DotNetProjectSdk` did not appear at the expected
Diagnose why the bundled `.agents/**` folder from `Purview.BuildSdk` did not appear at the expected
destination in a consuming repository.

## Required behaviour
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
agent: ask
description: "Ensure the Purview.DotNetProjectSdk applies analyzer/source-generator best-practice defaults to packable projects, so consumers of Purview.SourceGeneratorFramework (and any Roslyn component) get correct packaging without per-project overrides."
description: "Ensure the Purview.BuildSdk applies analyzer/source-generator best-practice defaults to packable projects, so consumers of Purview.SourceGeneratorFramework (and any Roslyn component) get correct packaging without per-project overrides."
---

You are working on the **Purview.DotNetProjectSdk** project (the `Purview.DotNetProjectSdk` package that projects import via `<Project Sdk="Purview.DotNetProjectSdk">`). Apply this checklist to its `Sdk.props` / `Sdk.targets` so that **packable** analyzer and source-generator projects get Roslyn best-practice defaults automatically.
You are working on the **Purview.BuildSdk** project (the `Purview.BuildSdk` package that projects import via `<Project Sdk="Purview.BuildSdk">`). Apply this checklist to its `Sdk.props` / `Sdk.targets` so that **packable** analyzer and source-generator projects get Roslyn best-practice defaults automatically.

## Context

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Purview.SourceGeneratorFramework

[![NuGet version](https://img.shields.io/nuget/v/Purview.SourceGeneratorFramework.svg)](https://www.nuget.org/packages/Purview.SourceGeneratorFramework)
[![Release](https://github.com/purview-dev/sourcegeneratorframework/actions/workflows/release.yml/badge.svg)](https://github.com/purview-dev/sourcegeneratorframework/actions/workflows/release.yml)
[![Release](https://github.com/purview-dev/sourcegenerator-framework/actions/workflows/release.yml/badge.svg)](https://github.com/purview-dev/sourcegenerator-framework/actions/workflows/release.yml)

A set of libraries for building and testing incremental C# source generators using Roslyn.

Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/Release-Flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The current version lives in the repository-root `package.json`:

```json
{
"name": "purview-sourcegeneratorframework",
"name": "purview-sourcegenerator-framework",
"version": "1.0.0-prerelease.42"
}
```
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"allowPrerelease": false
},
"msbuild-sdks": {
"Purview.DotNetProjectSdk": "1.0.0-prerelease.54"
"Purview.BuildSdk": "1.0.0-prerelease.56"
},
"test": {
"runner": "Microsoft.Testing.Platform"
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "purview-sourcegeneratorframework",
"version": "1.0.0-prerelease.42",
"name": "purview-sourcegenerator-framework",
"version": "1.0.0-prerelease.43",
"license": "MIT",
"author": {
"name": "Kieron Lanning",
"url": "https://kieronlanning.dev/"
},
"homepage": "https://purview.dev/projects/sourcegeneratorframework/",
"homepage": "https://purview.dev/projects/sourcegenerator-framework/",
"bugs": {
"url": "https://github.com/purview-dev/sourcegeneratorframework/issues"
"url": "https://github.com/purview-dev/sourcegenerator-framework/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/purview-dev/sourcegeneratorframework.git"
"url": "git+https://github.com/purview-dev/sourcegenerator-framework.git"
}
}
10 changes: 5 additions & 5 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.1;$(TestingTargetFrameworks)</TargetFrameworks>
<NamespacePrefix>Purview.SourceGeneratorFramework</NamespacePrefix>
<ExcludePurviewTelemetry>true</ExcludePurviewTelemetry>
<RepositoryUrl>https://github.com/purview-dev/sourcegeneratorframework</RepositoryUrl>
<RepositoryUrl>https://github.com/purview-dev/sourcegenerator-framework</RepositoryUrl>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -24,7 +24,7 @@
<NoWarn>$(NoWarn);CA1031;CA1510;</NoWarn>
</PropertyGroup>

<Import Sdk="Purview.DotNetProjectSdk" Project="Sdk.props" />
<Import Sdk="Purview.BuildSdk" Project="Sdk.props" />

<PropertyGroup Condition="'$(IsTestProject)' == 'true' OR '$(IsSharedTestingProject)' == 'true'">
<!-- Test projects aren't executable so we need to remove .NET Standard 2.1 -->
Expand All @@ -33,15 +33,15 @@

<PropertyGroup Label="Purview site URL metadata">
<PurviewHomepage>https://purview.dev/</PurviewHomepage>
<PurviewProjectUrl>$(PurviewHomepage)projects/sourcegeneratorframework/</PurviewProjectUrl>
<PurviewDocsUrl>$(PurviewHomepage)docs/sourcegeneratorframework/</PurviewDocsUrl>
<PurviewProjectUrl>$(PurviewHomepage)projects/sourcegenerator-framework/</PurviewProjectUrl>
<PurviewDocsUrl>$(PurviewHomepage)docs/sourcegenerator-framework/</PurviewDocsUrl>
</PropertyGroup>

<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<Authors>Purview Contributors</Authors>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageProjectUrl>$(PurviewProjectUrl)</PackageProjectUrl>
<RepositoryUrl>https://github.com/purview-dev/sourcegeneratorframework</RepositoryUrl>
<RepositoryUrl>https://github.com/purview-dev/sourcegenerator-framework</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageIcon>purview-logo.png</PackageIcon>
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<Authors>Purview Contributors</Authors>
<Description>Purview SourceGeneratorFramework libraries for building and testing incremental C# source generators.</Description>
<PackageProjectUrl>$(PurviewProjectUrl)</PackageProjectUrl>
<RepositoryUrl>https://github.com/purview-dev/sourcegeneratorframework</RepositoryUrl>
<RepositoryUrl>https://github.com/purview-dev/sourcegenerator-framework</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>purview-logo.png</PackageIcon>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<Import Sdk="Purview.DotNetProjectSdk" Project="Sdk.targets" />
<Import Sdk="Purview.BuildSdk" Project="Sdk.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<!--
This benchmark project intentionally uses the standard Microsoft.NET.Sdk and does not import
the parent Purview.DotNetProjectSdk props/targets. BenchmarkDotNet generates child projects under
the parent Purview.BuildSdk props/targets. BenchmarkDotNet generates child projects under
this directory, and the custom SDK targets write paths that are incompatible with those
auto-generated project locations.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<!--
Intentionally empty: prevents the parent Purview.DotNetProjectSdk targets from being imported
Intentionally empty: prevents the parent Purview.BuildSdk targets from being imported
into BenchmarkDotNet auto-generated projects under this directory.
-->
</Project>
4 changes: 2 additions & 2 deletions src/src/SourceGeneratorFramework.Testing.TUnit/Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ repository's example generator tests; replicate it in your own project with your

## Documentation

- [Homepage](https://purview.dev/projects/sourcegeneratorframework/)
- [Documentation](https://purview.dev/docs/sourcegeneratorframework/)
- [Homepage](https://purview.dev/projects/sourcegenerator-framework/)
- [Documentation](https://purview.dev/docs/sourcegenerator-framework/)

## License

Expand Down
4 changes: 2 additions & 2 deletions src/src/SourceGeneratorFramework.Testing/Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ test project rather than copied from the package. See `docs/wiki/Step-Cache-Test

## Documentation

- [Homepage](https://purview.dev/projects/sourcegeneratorframework/)
- [Documentation](https://purview.dev/docs/sourcegeneratorframework/)
- [Homepage](https://purview.dev/projects/sourcegenerator-framework/)
- [Documentation](https://purview.dev/docs/sourcegenerator-framework/)

## License

Expand Down
4 changes: 2 additions & 2 deletions src/src/SourceGeneratorFramework/Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ The `Purview.SourceGeneratorFramework` package includes the `Purview.SourceGener

## Documentation

- [Homepage](https://purview.dev/projects/sourcegeneratorframework/)
- [Documentation](https://purview.dev/docs/sourcegeneratorframework/)
- [Homepage](https://purview.dev/projects/sourcegenerator-framework/)
- [Documentation](https://purview.dev/docs/sourcegenerator-framework/)

## License

Expand Down