Skip to content

Add Test case for run the wpf application in the folder whose name contains NumberSign #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,310 changes: 100 additions & 5,210 deletions Microsoft.DotNet.Wpf.Test.sln

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputPath>$(RepoRoot)\artifacts\bin\DrtFolderPathWithNumberSignCharacter\$(Configuration)\$(RuntimeIdentifier)\FolderPathWith#Character</OutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<LinkSubsystem>console</LinkSubsystem>
<AssemblyIdentityVersionName>WCP</AssemblyIdentityVersionName>
<TestCode>true</TestCode>
</PropertyGroup>

<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="MainWindow.xaml.cs" />
</ItemGroup>

<ItemGroup>
<Content Include="Image.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>

</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Window x:Class="DrtFolderPathWithNumberSignCharacter.MainWindow"
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:DrtFolderPathWithNumberSignCharacter"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" Icon="Image.png">
<Grid>

</Grid>
</Window>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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.Navigation;
using System.Windows.Shapes;

namespace DrtFolderPathWithNumberSignCharacter
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

[STAThread]
static void Main(string[] args)
{
Application application = new Application();
application.Run(new MainWindow());
}
}
}
1 change: 1 addition & 0 deletions src/Test/BranchCommon/data/DrtList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Rundrtlist
<Drt Executable="DrtWindowHeightWidthTopLeft.exe" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" />
<Drt Executable="DrtWindowDragMove.exe" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" />
<Drt Executable="DrtAppShutdown.exe" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" />
<Drt Executable="DrtFolderPathWithNumberSignCharacter.exe" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" />
<Drt Executable="DrtAppThreadingModel.exe" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" />
<Drt Executable="DrtApplicationEvents.cmd" Architecture="all" OS="all" Owner="Microsoft" Team="AppModel" >
<SupportFiles>
Expand Down