Skip to content

Commit da18462

Browse files
committed
Updated pipeline to publish public preview feed
Added console tester project
1 parent 5737930 commit da18462

File tree

11 files changed

+261
-2
lines changed

11 files changed

+261
-2
lines changed

ConsoleTester/App.config

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
6+
</configuration>

ConsoleTester/ConsoleTester.csproj

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>ConsoleTester</RootNamespace>
10+
<AssemblyName>ConsoleTester</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="Lib, Version=1.1.0.0, Culture=neutral, PublicKeyToken=edd202a4e66b8d76, processorArchitecture=MSIL">
37+
<SpecificVersion>False</SpecificVersion>
38+
<HintPath>.\Lib.dll</HintPath>
39+
</Reference>
40+
<Reference Include="System" />
41+
<Reference Include="System.Core" />
42+
<Reference Include="System.Xml.Linq" />
43+
<Reference Include="System.Data.DataSetExtensions" />
44+
<Reference Include="Microsoft.CSharp" />
45+
<Reference Include="System.Data" />
46+
<Reference Include="System.Net.Http" />
47+
<Reference Include="System.Xml" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<Compile Include="Program.cs" />
51+
<Compile Include="Properties\AssemblyInfo.cs" />
52+
</ItemGroup>
53+
<ItemGroup>
54+
<None Include="App.config" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<ProjectReference Include="..\src\Utils\Utils.csproj">
58+
<Project>{dc1650a1-131a-4a5b-b7b6-d7a3d7794e52}</Project>
59+
<Name>Utils</Name>
60+
</ProjectReference>
61+
</ItemGroup>
62+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
63+
</Project>

ConsoleTester/Lib.dll

4.5 KB
Binary file not shown.

ConsoleTester/Program.cs

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using Xarial.XToolkit.Reflection;
8+
9+
namespace ConsoleTester
10+
{
11+
class Program
12+
{
13+
static Program()
14+
{
15+
AppDomain.CurrentDomain.ResolveBindingRedirects(new LocalFolderReferencesResolver(
16+
Path.GetDirectoryName(typeof(Program).Assembly.Location),
17+
AssemblyMatchFilter_e.PublicKeyToken | AssemblyMatchFilter_e.Culture));
18+
}
19+
20+
static void Main(string[] args)
21+
{
22+
Foo();
23+
}
24+
25+
static void Foo()
26+
{
27+
var f = new Lib.SampleClass();
28+
f.Foo();
29+
}
30+
}
31+
}
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("ConsoleTester")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("ConsoleTester")]
13+
[assembly: AssemblyCopyright("Copyright © 2021")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("f577e56b-eaa2-41ca-a827-32eaafe7a84d")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

Lib/Lib.csproj

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Lib</RootNamespace>
11+
<AssemblyName>Lib</AssemblyName>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup>
34+
<SignAssembly>true</SignAssembly>
35+
</PropertyGroup>
36+
<PropertyGroup>
37+
<AssemblyOriginatorKeyFile>sample-key.snk</AssemblyOriginatorKeyFile>
38+
</PropertyGroup>
39+
<ItemGroup>
40+
<Reference Include="System" />
41+
<Reference Include="System.Core" />
42+
<Reference Include="System.Xml.Linq" />
43+
<Reference Include="System.Data.DataSetExtensions" />
44+
<Reference Include="Microsoft.CSharp" />
45+
<Reference Include="System.Data" />
46+
<Reference Include="System.Net.Http" />
47+
<Reference Include="System.Xml" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<Compile Include="SampleClass.cs" />
51+
<Compile Include="Properties\AssemblyInfo.cs" />
52+
</ItemGroup>
53+
<ItemGroup>
54+
<None Include="sample-key.snk" />
55+
</ItemGroup>
56+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
57+
</Project>

Lib/Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Lib")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("Lib")]
13+
[assembly: AssemblyCopyright("Copyright © 2021")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("1dd5f208-badc-469f-b3ed-0d4b0a0206ff")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.1.0.0")]
36+
[assembly: AssemblyFileVersion("1.1.0.0")]

Lib/SampleClass.cs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Lib
8+
{
9+
public class SampleClass
10+
{
11+
public void Foo()
12+
{
13+
Console.WriteLine("Foo 1.0.0");
14+
}
15+
}
16+
}

Lib/sample-key.snk

596 Bytes
Binary file not shown.

build/templates/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ stages:
100100
command: 'push'
101101
packagesToPush: '$(Pipeline.Workspace)/packages/preview/*.nupkg'
102102
nuGetFeedType: 'internal'
103-
publishVstsFeed: 'xarial'
103+
publishVstsFeed: 'xtoolkit/xtoolkit-preview'
104104

105105
- stage: 'PublishPreReleaseNuGetPackage'
106106
displayName: 'Publish Prerelease NuGet Package to xarial nuget feed'

xtoolkit.sln

+15-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "WpfDocs.VB", "docs\_src\wpf
2323
EndProject
2424
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utils.Docs", "docs\_src\utils\Utils.Docs.csproj", "{60FF05C1-4680-4E64-A100-D885C7623AAD}"
2525
EndProject
26-
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Utils.Docs.VB", "docs\_src\utils.vb\Utils.Docs.VB.vbproj", "{B3D72728-35CD-4089-A0A4-A149089CB994}"
26+
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Utils.Docs.VB", "docs\_src\utils.vb\Utils.Docs.VB.vbproj", "{B3D72728-35CD-4089-A0A4-A149089CB994}"
27+
EndProject
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lib", "Lib\Lib.csproj", "{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}"
29+
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleTester", "ConsoleTester\ConsoleTester.csproj", "{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}"
2731
EndProject
2832
Global
2933
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -67,6 +71,14 @@ Global
6771
{B3D72728-35CD-4089-A0A4-A149089CB994}.Debug|Any CPU.Build.0 = Debug|Any CPU
6872
{B3D72728-35CD-4089-A0A4-A149089CB994}.Release|Any CPU.ActiveCfg = Release|Any CPU
6973
{B3D72728-35CD-4089-A0A4-A149089CB994}.Release|Any CPU.Build.0 = Release|Any CPU
74+
{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75+
{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
76+
{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
77+
{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF}.Release|Any CPU.Build.0 = Release|Any CPU
78+
{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79+
{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}.Debug|Any CPU.Build.0 = Debug|Any CPU
80+
{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}.Release|Any CPU.ActiveCfg = Release|Any CPU
81+
{F577E56B-EAA2-41CA-A827-32EAAFE7A84D}.Release|Any CPU.Build.0 = Release|Any CPU
7082
EndGlobalSection
7183
GlobalSection(SolutionProperties) = preSolution
7284
HideSolutionNode = FALSE
@@ -79,6 +91,8 @@ Global
7991
{A333D7E3-A796-43A7-BEBF-454170AB28F3} = {05320B23-C36C-4AA0-AE30-BD0B8869869F}
8092
{60FF05C1-4680-4E64-A100-D885C7623AAD} = {05320B23-C36C-4AA0-AE30-BD0B8869869F}
8193
{B3D72728-35CD-4089-A0A4-A149089CB994} = {05320B23-C36C-4AA0-AE30-BD0B8869869F}
94+
{1DD5F208-BADC-469F-B3ED-0D4B0A0206FF} = {E8063D71-BAB7-446A-9987-80B0AB0A4343}
95+
{F577E56B-EAA2-41CA-A827-32EAAFE7A84D} = {E8063D71-BAB7-446A-9987-80B0AB0A4343}
8296
EndGlobalSection
8397
GlobalSection(ExtensibilityGlobals) = postSolution
8498
SolutionGuid = {A20A6226-6310-4D97-8DF0-CA7759CCBFD2}

0 commit comments

Comments
 (0)