This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Windows; | |
| using System.Windows.Media; | |
| using System.Windows.Media.Media3D; | |
| public static class DependencyObjectExtensions | |
| { | |
| public static IEnumerable<DependencyObject> GetVisualDescendants(this DependencyObject visual) |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <ContentView x:Class="Warenannahme.Controls.FloatingEntry" | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| xmlns:d="http://xamarin.com/schemas/2014/forms/design" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| x:Name="this" | |
| mc:Ignorable="d"> | |
| <ContentView.Content> | |
| <Grid> |
This file contains hidden or 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
| private static List<string> GetAllReferences(string fullPath) | |
| { | |
| var logger = new ConsoleLogger(LoggerVerbosity.Quiet); | |
| var manager = BuildManager.DefaultBuildManager; | |
| var projectInstance = new ProjectInstance(fullPath); | |
| var result = manager.Build(new BuildParameters {DetailedSummary = false, Loggers = new List<ILogger> {logger}}, new BuildRequestData(projectInstance, new[] {"ResolveProjectReferences", "ResolveAssemblyReferences"})); | |
| var items1 = PrintResultItems(result, "ResolveProjectReferences"); | |
| var items2 = PrintResultItems(result, "ResolveAssemblyReferences"); |
This file contains hidden or 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
| <Target Name="NSwag" AfterTargets="Build" Condition="'$(Configuration)' != 'Release' AND '$(Configuration)' != 'Debug'"> | |
| <Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(OutDir)References" /> | |
| <Exec Command="$(NSwagExe_Core22) aspnetcore2swagger /assembly:$(TargetDir)InFact.Mobile.Api.dll /output:$(SolutionDir)nswag.json /runtime:NetCore22" /> | |
| <Exec Command="$(NSwagExe_Core22) swagger2csclient /input:$(SolutionDir)nswag.json /classname:InFactRestClient /namespace:InFact.RestClient /output:$(SolutionDir)InFact.Mobile.RestClient/InFactRestClient.cs " /> | |
| <RemoveDir Directories="$(OutDir)References" /> | |
| </Target> |
This file contains hidden or 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
| using System; | |
| using System.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
This file contains hidden or 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
| var oneVersion = new Version(1, 1, 1, 1); | |
| var twoVersion = new Version(2, 2, 2, 2); | |
| var tree = CreateCompareExpression(); | |
| var method = tree.Compile(); | |
| method(oneVersion,twoVersion).Dump(); | |
| Expression<Func<Version, Version, int>> CreateCompareExpression() | |
| { |
This file contains hidden or 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
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Collections.Specialized; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using System.Runtime.Serialization; | |
| using System.Threading; |
This file contains hidden or 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
| System.InvalidOperationException: Cannot combine a directory path with an absolute file path. | |
| bei Cake.Core.IO.DirectoryPath.CombineWithFilePath(FilePath path) | |
| bei Cake.Incubator.ProjectParserExtensions.<>c__DisplayClass14_0.<GetNetFrameworkReferences>b__9(<>f__AnonymousType20`2 <>h__TransparentIdentifier7) in C:\projects\cake-incubator\src\Cake.Incubator\ProjectParserExtensions.cs:Zeile 535. | |
| bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() | |
| bei Cake.Incubator.EnumerableExtensions.<Distinct>d__4`2.MoveNext() in C:\projects\cake-incubator\src\Cake.Incubator\EnumerableExtensions.cs:Zeile 99. | |
| bei System.Linq.Buffer`1..ctor(IEnumerable`1 source) | |
| bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) | |
| bei Cake.Incubator.ProjectParserExtensions.ParseNetFramework(XDocument document, IFile projectFile, String config, String platform) in C:\projects\cake-incubator\src\Cake.Incubator\ProjectParserExtensions.cs:Zeile 223. | |
| bei Cake.Incubator.ProjectParserExtensions.Pa |
This file contains hidden or 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
| #addin Cake.Incubator | |
| var target = Argument("target", "Default"); | |
| var solutionPath ="./WpfApp2.sln"; | |
| Task("Information") | |
| .Does(()=> | |
| { | |
| Information("Parsing {0}",solutionPath); | |
| var solution = ParseSolution(solutionPath); |
This file contains hidden or 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
| using System; | |
| using System.Threading.Tasks; | |
| namespace Maple.Core | |
| { | |
| public sealed class NotifyTaskCompletion<TResult> : ObservableObject | |
| { | |
| private readonly IMapleLog _log; | |
| private readonly Task<TResult> _task; |
NewerOlder