添加项目

main
bicijinlian 4 weeks ago
parent 2276aba196
commit e75c04f85b

@ -0,0 +1,13 @@
using System;
namespace LinqPadUtil
{
public static class Helper
{
public static void Print(string printMessage)
{
Console.WriteLine(printMessage);
}
}
}

@ -0,0 +1,21 @@
<Query Kind="Program">
<NuGetReference>Microsoft.CodeAnalysis.CSharp</NuGetReference>
<NuGetReference>Microsoft.Extensions.DependencyInjection</NuGetReference>
<NuGetReference>Microsoft.Extensions.Logging</NuGetReference>
<NuGetReference>Newtonsoft.Json</NuGetReference>
<NuGetReference>xunit</NuGetReference>
<Namespace>System.Threading.Tasks</Namespace>
<IncludeLinqToSql>true</IncludeLinqToSql>
<IncludeAspNet>true</IncludeAspNet>
</Query>
void Main()
{
}
// You can define other methods, fields, classes and namespaces here
private void PrintThreadInfo()
{
Console.WriteLine($"当前线程ID{Thread.CurrentThread.ManagedThreadId}");
}

@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.13.35919.96
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LinqPadUtil", "LinqPadUtil\LinqPadUtil.csproj", "{4D9F2A72-8CFE-4E54-9A30-3A68CCD32C95}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4D9F2A72-8CFE-4E54-9A30-3A68CCD32C95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D9F2A72-8CFE-4E54-9A30-3A68CCD32C95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D9F2A72-8CFE-4E54-9A30-3A68CCD32C95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D9F2A72-8CFE-4E54-9A30-3A68CCD32C95}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {52B10705-4183-49EB-9E08-3F975170072E}
EndGlobalSection
EndGlobal

@ -0,0 +1,13 @@
using System;
namespace LinqPadUtil
{
public static class Helper
{
public static void Print(string printMessage)
{
Console.WriteLine(printMessage);
}
}
}

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

@ -0,0 +1,20 @@
<Query Kind="Program">
<NuGetReference>Microsoft.CodeAnalysis.CSharp</NuGetReference>
<NuGetReference>Microsoft.Extensions.DependencyInjection</NuGetReference>
<NuGetReference>Microsoft.Extensions.Logging</NuGetReference>
<NuGetReference>Newtonsoft.Json</NuGetReference>
<NuGetReference>xunit</NuGetReference>
<Namespace>System.Threading.Tasks</Namespace>
<IncludeLinqToSql>true</IncludeLinqToSql>
<IncludeAspNet>true</IncludeAspNet>
</Query>
#load ".\LinqPadScript\MyUtil"
#load ".\CSharpScript\*.cs"
void Main()
{
PrintThreadInfo();
LinqPadUtil.Helper.Print("我是引用");
}
Loading…
Cancel
Save