Code Monkey home page Code Monkey logo

dotnet-bundle's People

Contributors

ilharp avatar piksel avatar x2bool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-bundle's Issues

Could not load file or assembly on linux

I have run the below command on my linux os:

dotnet restore -r osx-x64
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64

then throw some error

~/.nuget/packages/dotnet.bundle/0.9.12/build/DotNet.Bundle.targets(42,5): error MSB4062: The "DotNet.Bundle.BundleAppTask" task could not be loaded from the assembly ~/.nuget/packages/dotnet.bundle/0.9.12/build/../tasks/netstandard2.0/DotNet.Bundle.dll. Could not load file or assembly '~/.nuget/packages/dotnet.bundle/0.9.12/tasks/netstandard2.0/DotNet.Bundle.dll'. The system cannot find the file specified. [~/myproject/myproject.fsproj]
~/.nuget/packages/dotnet.bundle/0.9.12/build/DotNet.Bundle.targets(42,5): error MSB4062:  Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [~/myproject/myproject.fsproj]

I try to find why and I have found, because the dir ~/.nuget/packages/dotnet.bundle/0.9.12/tasks/netstandard2.0/ have the file Dotnet.Bundle.dll not DotNet.Bundle.dll , because file names in Linux are case sensitive but windows not so the error is only throw on linux , I have rename Dotnet.Bundle.dll to DotNet.Bundle.dll and run again everything is working

Not working with Console app?

Hello!

Yesterday I tried to create a simple .net core 6 Console Hello World app on MacOS 12.1 (Monterey). The app itself is running fine, but when bundled into a package and running this app package, it quickly closes down after running.
I've made sure to add a Console.ReadLine() at the end.

CFBundleURLTypes not being added to plist

I followed the readme and added

    <ItemGroup>
        <!-- Optional URLTypes.Check TestBundle.csproj for a working example. -->
        <CFBundleURLTypes Include="dummy">
            <!-- The name of this file is irrelevant, it's a MSBuild requirement.-->
            <CFBundleURLName>TestApp URL</CFBundleURLName>
            <CFBundleURLSchemes>testappurl;testappurl://</CFBundleURLSchemes>
            <!-- Note the ";" separator-->
        </CFBundleURLTypes>
        <CFBundleURLTypes Include="dummy">
            <CFBundleURLName>TestApp URL2</CFBundleURLName>
            <CFBundleURLSchemes>test://</CFBundleURLSchemes>
        </CFBundleURLTypes>
    </ItemGroup>

to the csproj, but the only thing that is added to my plist is

<true />

The target "BundleApp" does not exist in the project.

I've added the nuget package to my project. Then I've added the following lines to my csproj file:

<PropertyGroup>
    <CFBundleName>AppName</CFBundleName> <!-- Also defines .app file name -->
    <CFBundleDisplayName>App Name</CFBundleDisplayName>
    <CFBundleIdentifier>com.example</CFBundleIdentifier>
    <CFBundleVersion>1.0.0</CFBundleVersion>
    <CFBundlePackageType>APPL</CFBundlePackageType>
    <CFBundleSignature>????</CFBundleSignature>
    <CFBundleExecutable>AppName</CFBundleExecutable>
    <CFBundleIconFile>icon.icns</CFBundleIconFile> <!-- Will be copied from output directory -->
    <NSPrincipalClass>NSApplication</NSPrincipalClass>
</PropertyGroup>

and ran dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 via commandline on my csproj file. But I receive this error: The target "BundleApp" does not exist in the project. What am I doing wrong?

OSX - RuntimeInformation is causing application crashes

I am using RuntimeInformation for OS specific code. This is the snippet of code:

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)){
  // do windows stuff
} else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)){
  // do mac stuff
}

In Avalonia 0.9.13 this works fine but in 0.10.0.preview4 it causes the application to crash on OSX, Windows is find and I do not know about the other platforms. I have found out that Dotnet.Bundle is causing the issue, not Avalonia. In Dotnet.Bulndle 0.9.12 there is no issue but in 0.9.13 it causes the crash.

The OSx Problem Report is here https://pastebin.com/L2TsVVbC

I originally reported this on Avalonia
AvaloniaUI/Avalonia/issues/4596

Allow providing custom Info.plist entities

With this really helpful library application does not handles Info.plist file creation directly, thus it make create some difficulties when we actually need to add additional properties that weren't part of bundle information.
To avoid unnecessary xml rewrites I would want to set additional msbuild properties (items group with type info?) or use additional external configuration or Info.plist template.

Damaged or incomplete app - Please help

Hi there,

I believe I followed the instructions exactly however I am getting the error in the screenshot further below.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <RuntimeIdentifiers>osx-x64</RuntimeIdentifiers>
    <CFBundleName>NftJsonGen</CFBundleName> <!-- Also defines .app file name -->
    <CFBundleDisplayName>NftJsonGen</CFBundleDisplayName>
    <CFBundleIdentifier>com.endomint</CFBundleIdentifier>
    <CFBundleVersion>1.0.0</CFBundleVersion>
    <CFBundleShortVersionString>1.0.0</CFBundleShortVersionString>
     <OutputType>WinExe</OutputType>
    <CFBundlePackageType>APPL</CFBundlePackageType>
    <CFBundleExecutable>NftJsonGen</CFBundleExecutable>
    <CFBundleIconFile>Logo.icns</CFBundleIconFile> <!-- Will be copied from output directory -->
    <NSPrincipalClass>NSApplication</NSPrincipalClass>
    <NSHighResolutionCapable>true</NSHighResolutionCapable>
  </PropertyGroup>
  <ItemGroup>
    <Folder Include="Models\" />
    <AvaloniaResource Include="Assets\**" />
    <None Remove=".gitignore" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Avalonia" Version="0.10.10" />
    <PackageReference Include="Avalonia.Desktop" Version="0.10.10" />
    <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
    <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.10" />
    <PackageReference Include="Avalonia.ReactiveUI" Version="0.10.10" />
    <PackageReference Include="Dotnet.Bundle" Version="*" />
  </ItemGroup>
</Project>

I would appreciate any pointers in the right direction please.

alt text

I have also got the file list as below:
https://mike.getsharex.com/2022/01/20220129_y6MIvgrM2X.html

Built app crashes instantly

I have a console application made in .net and I have figured out how to use this to build it, but it doesn't seem to be working. I set my properties, set runtime targets, and run the command, and it builds to a .app just fine, but when I try to run the app it opens, crashes near instantly, then shows a 'application quit unexpectedly' popup. I have set the CFBundleExecutable correctly, when I try to run the executable directly that works as well, setting the CFPrincipalClass didn't change anything either (I'm assuming its meant to be the class where Main() is?). Same thing happens if I build it to arm64 or just x64. I am on an M1 mac, if that helps.

My source code is here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.