Skip to content

Commit

Permalink
Tidy the projects
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Dec 1, 2022
1 parent aea4aa6 commit 239a8df
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 46 deletions.
11 changes: 1 addition & 10 deletions AltCode.Fake.DotNet.Gendarme/AltCode.Fake.DotNet.Gendarme.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
<RootNamespace>AltCode.Fake.DotNet.Gendarme</RootNamespace>
<AssemblyName>AltCode.Fake.DotNet.Gendarme</AssemblyName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild Condition="'$(APPVEYOR)'=='True'">true</ContinuousIntegrationBuild>
<DeterministicSourcePaths Condition="'$(APPVEYOR)'=='True'">true</DeterministicSourcePaths>
<GlobalDefineConstants></GlobalDefineConstants>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(ProjectDir)../</SolutionDir>
<MSBuildWarningsAsMessages>MSB3245</MSBuildWarningsAsMessages>
<TailCalls>true</TailCalls>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS;$(GlobalDefineConstants)</DefineConstants>
<WarningLevel>5</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>TRACE;$(GlobalDefineConstants)</DefineConstants>
Expand All @@ -35,7 +26,7 @@
<ItemGroup>
<PackageReference Include="FAKE.Core.Process" />
<PackageReference Include="FAKE.DotNet.Cli" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Condition="'$(OS)' == 'Windows_NT'">
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
11 changes: 4 additions & 7 deletions AltCode.Fake.Tests/AltCode.Fake.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(ProjectDir)../</SolutionDir>
<RollForward>Major</RollForward>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS;$(GlobalDefineConstants)</DefineConstants>
<OtherFlags>--tailcalls+</OtherFlags>
<WarningLevel>5</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<NoWarn>52</NoWarn>
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>TRACE;$(GlobalDefineConstants)</DefineConstants>
<OtherFlags>--keyfile:$(SolutionDir)Build\Infrastructure.snk</OtherFlags>
</PropertyGroup>

<ItemGroup>
Expand All @@ -37,6 +30,10 @@
<PackageReference Include="FSharp.Core" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="YoloDev.Expecto.TestSdk" />
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 6 additions & 4 deletions AltCode.Nuget.Placeholder/AltCode.Nuget.Placeholder.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
<TargetFramework>net472</TargetFramework>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<UseStandardResourceNames>true</UseStandardResourceNames>
<Name>AltCode.Nuget.Placeholder</Name>
<Tailcalls>true</Tailcalls>
<OtherFlags>--keyfile:$(ProjectDir)..\Build\Infrastructure.snk --standalone</OtherFlags>
<OtherFlags>$(OtherFlags) --standalone</OtherFlags>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.Core" />
<PackageReference Include="FSharp.Core" VersionOverride="4.7.2" />
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
18 changes: 11 additions & 7 deletions AltCode.Nuget.Placeholder/Program.fs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[<EntryPoint>]
let main argv =
printfn "%A" argv
namespace Placeholder

if argv |> Seq.last |> System.IO.File.Exists then
0 // return an integer exit code
else
1
module Dummy =

[<EntryPoint>]
let main argv =
printfn "%A" argv

if argv |> Seq.last |> System.IO.File.Exists then
0 // return an integer exit code
else
1
19 changes: 1 addition & 18 deletions AltCode.VsWhat/AltCode.VsWhat.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,13 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild Condition="'$(APPVEYOR)'=='True'">true</ContinuousIntegrationBuild>
<DeterministicSourcePaths Condition="'$(APPVEYOR)'=='True'">true</DeterministicSourcePaths>
<GlobalDefineConstants></GlobalDefineConstants>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(ProjectDir)../</SolutionDir>
<RollForward>Major</RollForward>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS;$(GlobalDefineConstants)</DefineConstants>
<OutputPath>$(SolutionDir)_Binaries/$(AssemblyName)/$(Configuration)+$(Platform)/</OutputPath>
<IntermediateOutputPath>$(SolutionDir)_Intermediate/$(AssemblyName)/$(Configuration)+$(Platform)/</IntermediateOutputPath>
<OtherFlags>--tailcalls+</OtherFlags>
<WarningLevel>5</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>TRACE;$(GlobalDefineConstants)</DefineConstants>
<OutputPath>$(SolutionDir)_Binaries/$(AssemblyName)/$(Configuration)+$(Platform)/</OutputPath>
<IntermediateOutputPath>$(SolutionDir)_Intermediate/$(AssemblyName)/$(Configuration)+$(Platform)/</IntermediateOutputPath>
<OtherFlags>--keyfile:$(SolutionDir)Build\Infrastructure.snk</OtherFlags>
</PropertyGroup>

<ItemGroup>
Expand All @@ -43,7 +26,7 @@

<ItemGroup>
<PackageReference Include="BlackFox.VsWhere" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Condition="'$(OS)' == 'Windows_NT'">
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 239a8df

Please sign in to comment.