Skip to content

Commit 385c206

Browse files
Implement improved convertToSDK.py with mkall.targets-based NuGet detection
Co-authored-by: jasonleenaylor <2295227+jasonleenaylor@users.noreply.github.com>
1 parent f6ccf75 commit 385c206

File tree

116 files changed

+4579
-25724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+4579
-25724
lines changed

Bin/nmock/src/sample/sample.csproj

Lines changed: 11 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,11 @@
1-
<VisualStudioProject>
2-
<CSHARP
3-
ProjectType = "Local"
4-
ProductVersion = "7.10.3077"
5-
SchemaVersion = "2.0"
6-
ProjectGuid = "{4C542415-4833-4A6A-B891-752743F1E689}"
7-
SccProjectName = "Perforce Project"
8-
SccLocalPath = "."
9-
SccProvider = "MSSCCI:Perforce SCM"
10-
>
11-
<Build>
12-
<Settings
13-
ApplicationIcon = ""
14-
AssemblyKeyContainerName = ""
15-
AssemblyName = "sample"
16-
AssemblyOriginatorKeyFile = ""
17-
DefaultClientScript = "JScript"
18-
DefaultHTMLPageLayout = "Grid"
19-
DefaultTargetSchema = "IE50"
20-
DelaySign = "false"
21-
OutputType = "Library"
22-
PreBuildEvent = ""
23-
PostBuildEvent = ""
24-
RootNamespace = "sample"
25-
RunPostBuildEvent = "OnBuildSuccess"
26-
StartupObject = ""
27-
>
28-
<Config
29-
Name = "Debug"
30-
AllowUnsafeBlocks = "false"
31-
BaseAddress = "285212672"
32-
CheckForOverflowUnderflow = "false"
33-
ConfigurationOverrideFile = ""
34-
DefineConstants = "DEBUG;TRACE"
35-
DocumentationFile = ""
36-
DebugSymbols = "true"
37-
FileAlignment = "4096"
38-
IncrementalBuild = "true"
39-
NoStdLib = "false"
40-
NoWarn = ""
41-
Optimize = "false"
42-
OutputPath = "bin\Debug\"
43-
RegisterForComInterop = "false"
44-
RemoveIntegerChecks = "false"
45-
TreatWarningsAsErrors = "false"
46-
WarningLevel = "4"
47-
/>
48-
<Config
49-
Name = "Release"
50-
AllowUnsafeBlocks = "false"
51-
BaseAddress = "285212672"
52-
CheckForOverflowUnderflow = "false"
53-
ConfigurationOverrideFile = ""
54-
DefineConstants = "TRACE"
55-
DocumentationFile = ""
56-
DebugSymbols = "false"
57-
FileAlignment = "4096"
58-
IncrementalBuild = "false"
59-
NoStdLib = "false"
60-
NoWarn = ""
61-
Optimize = "true"
62-
OutputPath = "bin\Release\"
63-
RegisterForComInterop = "false"
64-
RemoveIntegerChecks = "false"
65-
TreatWarningsAsErrors = "false"
66-
WarningLevel = "4"
67-
/>
68-
</Settings>
69-
<References>
70-
<Reference
71-
Name = "System"
72-
AssemblyName = "System"
73-
HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
74-
/>
75-
<Reference
76-
Name = "System.Data"
77-
AssemblyName = "System.Data"
78-
HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
79-
/>
80-
<Reference
81-
Name = "System.XML"
82-
AssemblyName = "System.Xml"
83-
HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
84-
/>
85-
<Reference
86-
Name = "System.Web"
87-
AssemblyName = "System.Web"
88-
HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Web.dll"
89-
/>
90-
<Reference
91-
Name = "nunit.framework"
92-
AssemblyName = "nunit.framework"
93-
HintPath = "..\..\..\NUnit\bin\nunit.framework.dll"
94-
/>
95-
<Reference
96-
Name = "nmock"
97-
AssemblyName = "NMock"
98-
HintPath = "..\..\NMock.dll"
99-
/>
100-
</References>
101-
</Build>
102-
<Files>
103-
<Include>
104-
<File
105-
RelPath = "build.build"
106-
BuildAction = "None"
107-
/>
108-
<File
109-
RelPath = "order\Notifier.cs"
110-
SubType = "Code"
111-
BuildAction = "Compile"
112-
/>
113-
<File
114-
RelPath = "order\Order.cs"
115-
SubType = "Code"
116-
BuildAction = "Compile"
117-
/>
118-
<File
119-
RelPath = "order\OrderProcessor.cs"
120-
SubType = "Code"
121-
BuildAction = "Compile"
122-
/>
123-
<File
124-
RelPath = "order\OrderProcessorTest.cs"
125-
SubType = "Code"
126-
BuildAction = "Compile"
127-
/>
128-
<File
129-
RelPath = "random\Weather.cs"
130-
SubType = "Code"
131-
BuildAction = "Compile"
132-
/>
133-
<File
134-
RelPath = "random\WeatherTest.cs"
135-
SubType = "Code"
136-
BuildAction = "Compile"
137-
/>
138-
</Include>
139-
</Files>
140-
</CSHARP>
141-
</VisualStudioProject>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<AssemblyName>sample</AssemblyName>
4+
<RootNamespace>sample</RootNamespace>
5+
<TargetFramework>net48</TargetFramework>
6+
<OutputType>Library</OutputType>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<NoWarn>168,169,219,414,649,1635,1702,1701</NoWarn>
9+
</PropertyGroup>
10+
11+
</Project>

Bin/nmock/src/src/NMock.csproj

Lines changed: 9 additions & 177 deletions
Original file line numberDiff line numberDiff line change
@@ -1,194 +1,26 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="Current">
1+
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
4-
<ProjectType>Local</ProjectType>
5-
<ProductVersion>8.0.50727</ProductVersion>
6-
<SchemaVersion>2.0</SchemaVersion>
7-
<ProjectGuid>{4859B9E5-3F65-4517-878C-AFC58B9D0035}</ProjectGuid>
8-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
9-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10-
<ApplicationIcon>
11-
</ApplicationIcon>
12-
<AssemblyKeyContainerName>
13-
</AssemblyKeyContainerName>
143
<AssemblyName>NMock</AssemblyName>
15-
<AssemblyOriginatorKeyFile>
16-
</AssemblyOriginatorKeyFile>
17-
<DefaultClientScript>JScript</DefaultClientScript>
18-
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
19-
<DefaultTargetSchema>IE50</DefaultTargetSchema>
20-
<DelaySign>false</DelaySign>
21-
<OutputType>Library</OutputType>
224
<RootNamespace>NMock</RootNamespace>
23-
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
24-
<StartupObject>
25-
</StartupObject>
26-
<FileUpgradeFlags>
27-
</FileUpgradeFlags>
28-
<UpgradeBackupLocation>
29-
</UpgradeBackupLocation>
30-
<OldToolsVersion>3.5</OldToolsVersion>
31-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
32-
<TargetFrameworkProfile />
33-
<PublishUrl>publish\</PublishUrl>
34-
<Install>true</Install>
35-
<InstallFrom>Disk</InstallFrom>
36-
<UpdateEnabled>false</UpdateEnabled>
37-
<UpdateMode>Foreground</UpdateMode>
38-
<UpdateInterval>7</UpdateInterval>
39-
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
40-
<UpdatePeriodically>false</UpdatePeriodically>
41-
<UpdateRequired>false</UpdateRequired>
42-
<MapFileExtensions>true</MapFileExtensions>
43-
<ApplicationRevision>0</ApplicationRevision>
44-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
45-
<IsWebBootstrapper>false</IsWebBootstrapper>
46-
<UseApplicationTrust>false</UseApplicationTrust>
47-
<BootstrapperEnabled>true</BootstrapperEnabled>
5+
<TargetFramework>net48</TargetFramework>
6+
<OutputType>Library</OutputType>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<NoWarn>168,169,219,414,649,1635,1702,1701</NoWarn>
9+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
4810
</PropertyGroup>
11+
4912
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
50-
<OutputPath>bin\Debug\</OutputPath>
51-
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
52-
<BaseAddress>285212672</BaseAddress>
53-
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
54-
<ConfigurationOverrideFile>
55-
</ConfigurationOverrideFile>
5613
<DefineConstants>DEBUG;TRACE</DefineConstants>
57-
<DocumentationFile>
58-
</DocumentationFile>
5914
<DebugSymbols>true</DebugSymbols>
60-
<FileAlignment>4096</FileAlignment>
61-
<NoStdLib>false</NoStdLib>
62-
<NoWarn>
63-
</NoWarn>
6415
<Optimize>false</Optimize>
65-
<RegisterForComInterop>false</RegisterForComInterop>
66-
<RemoveIntegerChecks>false</RemoveIntegerChecks>
67-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
68-
<WarningLevel>4</WarningLevel>
6916
<DebugType>full</DebugType>
70-
<ErrorReport>prompt</ErrorReport>
7117
</PropertyGroup>
18+
7219
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
73-
<OutputPath>bin\Release\</OutputPath>
74-
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
75-
<BaseAddress>285212672</BaseAddress>
76-
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
77-
<ConfigurationOverrideFile>
78-
</ConfigurationOverrideFile>
7920
<DefineConstants>TRACE</DefineConstants>
80-
<DocumentationFile>
81-
</DocumentationFile>
8221
<DebugSymbols>false</DebugSymbols>
83-
<FileAlignment>4096</FileAlignment>
84-
<NoStdLib>false</NoStdLib>
85-
<NoWarn>
86-
</NoWarn>
8722
<Optimize>true</Optimize>
88-
<RegisterForComInterop>false</RegisterForComInterop>
89-
<RemoveIntegerChecks>false</RemoveIntegerChecks>
90-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
91-
<WarningLevel>4</WarningLevel>
9223
<DebugType>none</DebugType>
93-
<ErrorReport>prompt</ErrorReport>
94-
</PropertyGroup>
95-
<ItemGroup>
96-
<Reference Include="System">
97-
<Name>System</Name>
98-
</Reference>
99-
<Reference Include="System.Data">
100-
<Name>System.Data</Name>
101-
</Reference>
102-
<Reference Include="System.Xml">
103-
<Name>System.XML</Name>
104-
</Reference>
105-
</ItemGroup>
106-
<ItemGroup>
107-
<Compile Include="AssemblyInfo.cs">
108-
<SubType>Code</SubType>
109-
</Compile>
110-
<Compile Include="NMock\CallMethodOrder.cs">
111-
<SubType>Code</SubType>
112-
</Compile>
113-
<Compile Include="NMock\CallMethodWithoutExpectation.cs">
114-
<SubType>Code</SubType>
115-
</Compile>
116-
<Compile Include="NMock\CallMethodWithParams.cs">
117-
<SubType>Code</SubType>
118-
</Compile>
119-
<Compile Include="NMock\Constraints\Constraints.cs">
120-
<SubType>Code</SubType>
121-
</Compile>
122-
<Compile Include="NMock\Constraints\IConstraint.cs">
123-
<SubType>Code</SubType>
124-
</Compile>
125-
<Compile Include="NMock\DynamicMock.cs">
126-
<SubType>Code</SubType>
127-
</Compile>
128-
<Compile Include="NMock\Dynamic\ClassGenerator.cs">
129-
<SubType>Code</SubType>
130-
</Compile>
131-
<Compile Include="NMock\Dynamic\InterfaceLister.cs">
132-
<SubType>Code</SubType>
133-
</Compile>
134-
<Compile Include="NMock\IInvocationHandler.cs">
135-
<SubType>Code</SubType>
136-
</Compile>
137-
<Compile Include="NMock\IMethod.cs">
138-
<SubType>Code</SubType>
139-
</Compile>
140-
<Compile Include="NMock\IMock.cs">
141-
<SubType>Code</SubType>
142-
</Compile>
143-
<Compile Include="NMock\Invocation.cs">
144-
<SubType>Code</SubType>
145-
</Compile>
146-
<Compile Include="NMock\IVerifiable.cs">
147-
<SubType>Code</SubType>
148-
</Compile>
149-
<Compile Include="NMock\Method.cs">
150-
<SubType>Code</SubType>
151-
</Compile>
152-
<Compile Include="NMock\MethodSignature.cs">
153-
<SubType>Code</SubType>
154-
</Compile>
155-
<Compile Include="NMock\Mock.cs">
156-
<SubType>Code</SubType>
157-
</Compile>
158-
<Compile Include="NMock\MockCall.cs">
159-
<SubType>Code</SubType>
160-
</Compile>
161-
<Compile Include="NMock\Remoting\MockServer.cs">
162-
<SubType>Code</SubType>
163-
</Compile>
164-
<Compile Include="NMock\Remoting\RemotingMock.cs">
165-
<SubType>Code</SubType>
166-
</Compile>
167-
<Compile Include="NMock\SingleMethod.cs">
168-
<SubType>Code</SubType>
169-
</Compile>
170-
<Compile Include="NMock\VerifyException.cs">
171-
<SubType>Code</SubType>
172-
</Compile>
173-
<None Include="NMock\build.build" />
174-
</ItemGroup>
175-
<ItemGroup>
176-
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
177-
<Visible>False</Visible>
178-
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
179-
<Install>false</Install>
180-
</BootstrapperPackage>
181-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
182-
<Visible>False</Visible>
183-
<ProductName>.NET Framework 3.5 SP1</ProductName>
184-
<Install>true</Install>
185-
</BootstrapperPackage>
186-
</ItemGroup>
187-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
188-
<PropertyGroup>
189-
<PreBuildEvent>
190-
</PreBuildEvent>
191-
<PostBuildEvent>
192-
</PostBuildEvent>
19324
</PropertyGroup>
25+
19426
</Project>

0 commit comments

Comments
 (0)