-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch demo project to .NET Core SDK
Update build script Add reference assemblies for .NET 3.5
- Loading branch information
1 parent
fefbcb1
commit 2ef1b39
Showing
7 changed files
with
101 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Window x:Class="WpfAnimatedGif.Demo.InputBox" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:WpfAnimatedGif.Demo" | ||
mc:Ignorable="d" | ||
SizeToContent="Height" | ||
Title="InputBox" Height="100" Width="300"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition /> | ||
<RowDefinition Height="30" /> | ||
<RowDefinition Height="30" /> | ||
</Grid.RowDefinitions> | ||
<TextBlock Grid.Row="0" x:Name="prompt" Margin="5,3" TextWrapping="Wrap" /> | ||
<TextBox Grid.Row="1" x:Name="input" Margin="5,3"/> | ||
<StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal"> | ||
<Button Content="OK" Click="OKButton_Click" IsDefault="True" Margin="5,3" /> | ||
<Button Content="Cancel" Click="CancelButton_Click" IsCancel="True" Margin="5,3" /> | ||
</StackPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace WpfAnimatedGif.Demo | ||
{ | ||
/// <summary> | ||
/// Interaction logic for InputBox.xaml | ||
/// </summary> | ||
public partial class InputBox : Window | ||
{ | ||
public InputBox() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void OKButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
DialogResult = true; | ||
} | ||
|
||
private void CancelButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
DialogResult = false; | ||
} | ||
|
||
public static string Show(string prompt, string title) | ||
{ | ||
var w = new InputBox(); | ||
w.Title = title; | ||
w.prompt.Text = prompt; | ||
if (w.ShowDialog() is true) | ||
{ | ||
return w.input.Text; | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{F15F23F1-D349-426E-8A05-AEEF1A663599}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>WpfAnimatedGif.Demo</RootNamespace> | ||
<AssemblyName>WpfAnimatedGif.Demo</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<TargetFrameworkProfile>Client</TargetFrameworkProfile> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<WarningLevel>4</WarningLevel> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<UseWPF>true</UseWPF> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.VisualBasic" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Windows.Presentation" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Xaml"> | ||
<RequiredTargetFramework>4.0</RequiredTargetFramework> | ||
</Reference> | ||
<Reference Include="WindowsBase" /> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ApplicationDefinition Include="App.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</ApplicationDefinition> | ||
<Compile Include="TestRelativeUri.xaml.cs"> | ||
<DependentUpon>TestRelativeUri.xaml</DependentUpon> | ||
</Compile> | ||
<Page Include="MainWindow.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
<Compile Include="App.xaml.cs"> | ||
<DependentUpon>App.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="MainWindow.xaml.cs"> | ||
<DependentUpon>MainWindow.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Page Include="TestRelativeUri.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Properties\AssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<AppDesigner Include="Properties\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\working.gif" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\WpfAnimatedGif\WpfAnimatedGif.csproj"> | ||
<Project>{D129789C-3096-4D0B-8DD7-FE24A4DF4B21}</Project> | ||
<Name>WpfAnimatedGif</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\WpfAnimatedGif\WpfAnimatedGif.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\bomb.gif" /> | ||
<Content Include="Images\siteoforigin.gif" CopyToOutputDirectory="PreserveNewest" /> | ||
<Resource Include="Images\bomb-once.gif" /> | ||
<Resource Include="Images\Bomb.gif" /> | ||
<Resource Include="Images\earth.gif" /> | ||
<Resource Include="Images\radar.gif" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\monster.gif" /> | ||
<Resource Include="Images\nonanimated.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\bomb-once.gif" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\play.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\pause.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\partialfirstframe.gif" /> | ||
<Resource Include="Images\monster.gif" /> | ||
<Content Include="Images\siteoforigin.gif"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Resource Include="Images\pause.png" /> | ||
<Resource Include="Images\play.png" /> | ||
<Resource Include="Images\radar.gif" /> | ||
<Resource Include="Images\working.gif" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
msbuild WpfAnimatedGif.sln /t:Clean /t:Rebuild /property:Configuration=Release | ||
@echo off | ||
dotnet build -c Release |