diff --git a/NiceIO.PackageTest/Extension.cs b/NiceIO.PackageTest/Extension.cs new file mode 100644 index 0000000..0a22ff8 --- /dev/null +++ b/NiceIO.PackageTest/Extension.cs @@ -0,0 +1,6 @@ +namespace AnotherNamespace; + +partial class NPath +{ + public static NPath AnotherStatic => new("a/b/c"); +} diff --git a/NiceIO.PackageTest/NiceIO.PackageTest.csproj b/NiceIO.PackageTest/NiceIO.PackageTest.csproj new file mode 100644 index 0000000..4709792 --- /dev/null +++ b/NiceIO.PackageTest/NiceIO.PackageTest.csproj @@ -0,0 +1,12 @@ + + + Exe + net7.0 + true + + + + + + + diff --git a/NiceIO.PackageTest/Program.cs b/NiceIO.PackageTest/Program.cs new file mode 100644 index 0000000..e9e4a18 --- /dev/null +++ b/NiceIO.PackageTest/Program.cs @@ -0,0 +1,2 @@ +var path = AnotherNamespace.NPath.AnotherStatic.Combine("file.txt"); +Console.WriteLine($"Path is {path}"); diff --git a/NiceIO.PackageTest/nuget.config b/NiceIO.PackageTest/nuget.config new file mode 100644 index 0000000..48af43d --- /dev/null +++ b/NiceIO.PackageTest/nuget.config @@ -0,0 +1,5 @@ + + + + + diff --git a/NiceIO.PackageTest/test.ps1 b/NiceIO.PackageTest/test.ps1 new file mode 100644 index 0000000..92507c6 --- /dev/null +++ b/NiceIO.PackageTest/test.ps1 @@ -0,0 +1,5 @@ +dotnet pack .. -p:NuspecFile=NiceIO.nuspec +dotnet add package NiceIO --source ..\bin\release --package-directory packages +if ((dotnet run) -ne 'Path is a/b/c/file.txt') { throw 'it broke' } +'' +'Everything is shiny' diff --git a/NiceIO.csproj b/NiceIO.csproj index 7196f6c..897ad1a 100644 --- a/NiceIO.csproj +++ b/NiceIO.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 9 @@ -8,4 +8,20 @@ - \ No newline at end of file + + + + + + + + + diff --git a/NiceIO.nuspec b/NiceIO.nuspec new file mode 100644 index 0000000..48dee6b --- /dev/null +++ b/NiceIO.nuspec @@ -0,0 +1,22 @@ + + + + + NiceIO + 1.0.0 + NiceIO + For when you've had to use System.IO one time too many. + Lucas Meijer + + MIT + README.md + + + + + + + + diff --git a/NiceIO.sln b/NiceIO.sln index 0882e21..7a9adfa 100644 --- a/NiceIO.sln +++ b/NiceIO.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NiceIO", "NiceIO.csproj", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NiceIO.Tests", "NiceIO.Tests\NiceIO.Tests.csproj", "{AC76E796-A1C5-44D7-84F5-88BFD0908767}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NiceIO.PackageTest", "NiceIO.PackageTest\NiceIO.PackageTest.csproj", "{7BA16958-FDAE-411E-9EE2-81563B3D4A69}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU