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
29 changes: 19 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: .NET
name: Setup CodeAnalysis .NET

on:
push:
branches: [ main, dev, feature/*, fix/*, release/* ]

pull_request:
branches: [ main ]

release:
types: [ published ]

Expand All @@ -16,14 +13,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
9.0.x
10.0.x
# dotnet-quality: 'preview' # When using preview versions
dotnet-quality: 'ga' # General Availability

# Create Local NuGet Source

Expand Down Expand Up @@ -55,6 +53,17 @@ jobs:
- name: Pack CodeAnalysis.SourceBuilder
run: dotnet pack ./src/*/CodeAnalysis.SourceBuilder.csproj --no-restore -o ~/nuget -c Release

# CodeAnalysis

- name: Restore CodeAnalysis
run: dotnet restore ./src/*/CodeAnalysis.csproj

- name: Build CodeAnalysis
run: dotnet build ./src/*/CodeAnalysis.csproj --no-restore -c Release

- name: Pack CodeAnalysis
run: dotnet pack ./src/*/CodeAnalysis.csproj --no-restore -o ~/nuget -c Release

# Push

- name: Push Packages
Expand Down
68 changes: 49 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*.user
*.userosscache
*.sln.docstates
*.env

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand All @@ -21,17 +22,37 @@ mono_crash.*
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/

[Dd]ebug/x64/
[Dd]ebugPublic/x64/
[Rr]elease/x64/
[Rr]eleases/x64/
bin/x64/
obj/x64/

[Dd]ebug/x86/
[Dd]ebugPublic/x86/
[Rr]elease/x86/
[Rr]eleases/x86/
bin/x86/
obj/x86/

[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
[Aa][Rr][Mm]64[Ee][Cc]/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
[Ll]og/
[Ll]ogs/

# Build results on 'Bin' directories
**/[Bb]in/*
# Uncomment if you have tasks that rely on *.refresh files to move binaries
# (https://github.com/github/gitignore/pull/3736)
#!**/[Bb]in/*.refresh

# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
Expand All @@ -43,12 +64,16 @@ Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*.trx

# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml

# Approval Tests result files
*.received.*

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
Expand All @@ -75,13 +100,16 @@ StyleCopReport.xml
*.ilk
*.meta
*.obj
*.idb
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
# but not Directory.Build.rsp, as it configures directory-level build defaults
!Directory.Build.rsp
*.sbr
*.tlb
*.tli
Expand Down Expand Up @@ -153,6 +181,7 @@ coverage*.info

# NCrunch
_NCrunch_*
.NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

Expand Down Expand Up @@ -294,9 +323,6 @@ node_modules/
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp

# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
Expand All @@ -314,22 +340,22 @@ node_modules/
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
**/.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/
**/.fake/

# CodeRush personal settings
.cr/personal
**/.cr/personal

# Python Tools for Visual Studio (PTVS)
__pycache__/
**/__pycache__/
*.pyc

# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
#tools/**
#!tools/packages.config

# Tabs Studio
*.tss
Expand All @@ -351,15 +377,19 @@ ASALocalRun/

# MSBuild Binary and Structured Log
*.binlog
MSBuild_Logs/

# AWS SAM Build and Temporary Artifacts folder
.aws-sam

# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
.mfractor/
**/.mfractor/

# Local History for Visual Studio
.localhistory/
**/.localhistory/

# Visual Studio History (VSHistory) files
.vshistory/
Expand All @@ -371,7 +401,7 @@ healthchecksdb
MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/
**/.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
Expand All @@ -382,17 +412,17 @@ FodyWeavers.xsd
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp

# JetBrains Rider
*.sln.iml
28 changes: 0 additions & 28 deletions CodeAnalysis.sln

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 PrimeFuncPack Foundation
Copyright (c) 2024-2026 Andrei Sergeev, Pavel Moskovoy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# early-codeanalysis
EarlyFuncPack CodeAnalysis is a library for .NET for use in building source generators
# PrimeFuncPack CodeAnalysis

PrimeFuncPack CodeAnalysis is a library pack for .NET for use in building source generators.
3 changes: 3 additions & 0 deletions docs/codeanalysis-extensions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PrimeFuncPack CodeAnalysis.Extensions

PrimeFuncPack CodeAnalysis.Extensions is a library for .NET with special extensions for use in building source generators.
3 changes: 3 additions & 0 deletions docs/codeanalysis-sourcebuilder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PrimeFuncPack CodeAnalysis.SourceBuilder

PrimeFuncPack CodeAnalysis.SourceBuilder is a library for .NET with a source builder for use in building source generators.
3 changes: 3 additions & 0 deletions docs/codeanalysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PrimeFuncPack CodeAnalysis

PrimeFuncPack CodeAnalysis is a library pack for .NET for use in building source generators.
86 changes: 41 additions & 45 deletions src/CodeAnalysis.Extensions/CodeAnalysis.Extensions.csproj
Original file line number Diff line number Diff line change
@@ -1,45 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);IDE0130;IDE0290</NoWarn>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/early-codeanalysis</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/early-codeanalysis</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2025 Andrei Sergeev, Pavel Moskovoy</Copyright>
<Description>EarlyFuncPack CodeAnalysis is a library for .NET for use in building source generators.</Description>
<RootNamespace>PrimeFuncPack</RootNamespace>
<AssemblyName>EarlyFuncPack.CodeAnalysis.Extensions</AssemblyName>
<Version>0.0.1</Version>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.13.0" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net10.0;netstandard2.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);IDE0130;IDE0290</NoWarn>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/early-codeanalysis</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/early-codeanalysis</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2024-2026 Andrei Sergeev, Pavel Moskovoy</Copyright>
<Description>PrimeFuncPack CodeAnalysis.Extensions is a library for .NET with special extensions for use in building source generators.</Description>
<RootNamespace>PrimeFuncPack</RootNamespace>
<AssemblyName>EarlyFuncPack.CodeAnalysis.Extensions</AssemblyName>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\docs\codeanalysis-extensions\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="5.3.0" />
</ItemGroup>

</Project>
Loading