magick convert logo.png -define icon:auto-resize=64,48,32,16 logo.ico
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 Microsoft.CodeAnalysis.MSBuild; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; | |
| using Microsoft.CodeAnalysis.Editing; | |
| using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| var solutionFilePath = @"SomeSolution.sln"; | |
| using var workspace = MSBuildWorkspace.Create(); |
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"?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| </SnippetTypes> | |
| <Title>AvaloniaUIDirectProperty</Title> | |
| <Author> | |
| </Author> |
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.Xml.Linq; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using SkiaSharp; | |
| namespace VSIMageLib | |
| { | |
| class Program |
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
| <Project> | |
| <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" /> | |
| <Target Name="MoveLib" AfterTargets="AfterBuild"> | |
| <ItemGroup> | |
| <LibFiles Include="$(OutDir)*.*" Exclude="$(OutDir)$(AssemblyName).*" /> | |
| </ItemGroup> | |
| <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OutDir)lib" /> | |
| <TransformXml Source="$(OutDir)$(AssemblyName).exe.config" Transform="$(MSBuildThisFileDirectory)\LibTransform.xml" Destination="$(OutDir)$(AssemblyName).exe.config" /> | |
| </Target> | |
| </Project> |
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.Text; | |
| using Xenko.Core; | |
| using Xenko.Core.Annotations; | |
| using Xenko.Core.Serialization; | |
| using Xenko.Core.Serialization.Contents; | |
| namespace MyGame | |
| { |
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.Threading.Tasks; | |
| using PhysicsSample.Transitions.Rendering.Images; | |
| using SiliconStudio.Core.Extensions; | |
| using SiliconStudio.Core.Mathematics; | |
| using SiliconStudio.Xenko.Engine; | |
| using SiliconStudio.Xenko.Graphics; | |
| using SiliconStudio.Xenko.Input; |
This is an example/how-to for using Entity Framework & Sqlite with Xenko
- Add EF references to the "project.json" file of the "MyGame.Game" portable library project. See attached.
- Restore NuGet packages.
- Add Nuget Packages "Microsoft.EntityFrameworkCore.Design" and "Microsoft.EntityFrameworkCore.Sqlite" to the "MyGame.Windows" project. (not sure why this is required, Asset Compiler errors otherwise).
- Create your own DbContext similar to example attached. The filename stuff is important.
- Create script to load your DbContext. See "MyDatabaseScript.cs".
- Add database file as a Raw Asset and mark as root so it is included in build.
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.Collections.Generic; | |
| using SiliconStudio.Xenko.Engine; | |
| namespace MyGame | |
| { | |
| public static class EntityExtensions | |
| { | |
| public static IEnumerable<T> GetComponentsInChildren<T>(this Entity entity) where T : EntityComponent | |
| { | |
| //depth first |
NewerOlder