This commit is contained in:
Wade Wegner 2018-08-21 13:26:15 -07:00
Родитель 40a7f0246b
Коммит e25858b75e
4 изменённых файлов: 32 добавлений и 7 удалений

Просмотреть файл

@ -1,3 +1,4 @@
rm -rf "artifacts"
mkdir "artifacts"
dotnet clean src/ForceToolkitForNET.sln
@ -8,4 +9,16 @@ dotnet build src/ForceToolkitForNET.sln -c Debug /p:DebugType=Full
dotnet pack src/ForceToolkitForNET/ForceToolkitForNET.csproj -o "..\..\artifacts" --include-symbols --include-source
dotnet pack src/ChatterToolkitForNET/ChatterToolkitForNET.csproj -o "..\..\artifacts" --include-symbols --include-source
dotnet pack src/ChatterToolkitForNET/ChatterToolkitForNET.csproj -o "..\..\artifacts" --include-symbols --include-source
cp artifacts/DeveloperForce.Chatter.$1.nupkg artifacts/DeveloperForce.Chatter.$1.nupkg.zip
cp artifacts/DeveloperForce.Force.$1.nupkg artifacts/DeveloperForce.Force.$1.nupkg.zip
unzip artifacts/DeveloperForce.Chatter.$1.nupkg.zip -d artifacts/DeveloperForce.Chatter
unzip artifacts/DeveloperForce.Force.$1.nupkg.zip -d artifacts/DeveloperForce.Force
chmod +r artifacts/DeveloperForce.Chatter/DeveloperForce.Chatter.nuspec
chmod +r artifacts/DeveloperForce.Force/DeveloperForce.Force.nuspec

Просмотреть файл

@ -1,3 +1,3 @@
dotnet nuget push artifacts/DeveloperForce.Force.$1.nupkg -k $2 -s https://api.nuget.org/v3/index.json
dotnet nuget push artifacts/DeveloperForce.Force.$2.nupkg -k $1 -s https://api.nuget.org/v3/index.json
dotnet nuget push artifacts/DeveloperForce.Chatter.$1.nupkg -k $2 -s https://api.nuget.org/v3/index.json
dotnet nuget push artifacts/DeveloperForce.Chatter.$2.nupkg -k $1 -s https://api.nuget.org/v3/index.json

Просмотреть файл

@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard20</TargetFramework>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeSalesforceCommon</TargetsForTfmSpecificBuildOutput>
<RootNamespace>Salesforce.Chatter</RootNamespace>
<AssemblyName>Salesforce.Chatter</AssemblyName>
<SignAssembly>true</SignAssembly>
@ -17,7 +18,7 @@
<PropertyGroup>
<PackageId>DeveloperForce.Chatter</PackageId>
<Title>DeveloperForce.Chatter</Title>
<Version>2.0.1</Version>
<Version>2.0.4</Version>
<Authors>wadewegner</Authors>
<Description>The DeveloperForce.Chatter NuGet provides a .NET library for interacting with the Salesforce Lightning Chatter APIs.</Description>
<PackageLicenseUrl>https://raw.github.com/developerforce/Force.com-Toolkit-for-NET/master/LICENSE</PackageLicenseUrl>
@ -31,9 +32,14 @@
<AssemblyOriginatorKeyFile>..\ForceTookitForNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CommonLibrariesForNET\CommonLibrariesForNET.csproj" />
<ProjectReference Include="..\CommonLibrariesForNET\CommonLibrariesForNET.csproj" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
</ItemGroup>
<Target Name="IncludeSalesforceCommon">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)\Salesforce.Common.dll" />
</ItemGroup>
</Target>
</Project>

Просмотреть файл

@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard20</TargetFramework>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeSalesforceCommon</TargetsForTfmSpecificBuildOutput>
<RootNamespace>Salesforce.Force</RootNamespace>
<AssemblyName>Salesforce.Force</AssemblyName>
<SignAssembly>true</SignAssembly>
@ -17,7 +18,7 @@
<PropertyGroup>
<PackageId>DeveloperForce.Force</PackageId>
<Title>DeveloperForce.Force</Title>
<Version>2.0.1</Version>
<Version>2.0.4</Version>
<Authors>wadewegner</Authors>
<Description>The DeveloperForce.Force NuGet provides a .NET library for interacting with Salesforce Lightning REST APIs.</Description>
<PackageLicenseUrl>https://raw.github.com/developerforce/Force.com-Toolkit-for-NET/master/LICENSE</PackageLicenseUrl>
@ -31,9 +32,14 @@
<AssemblyOriginatorKeyFile>..\ForceTookitForNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CommonLibrariesForNET\CommonLibrariesForNET.csproj" />
<ProjectReference Include="..\CommonLibrariesForNET\CommonLibrariesForNET.csproj" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
</ItemGroup>
<Target Name="IncludeSalesforceCommon">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)\Salesforce.Common.dll" />
</ItemGroup>
</Target>
</Project>