WindowsPackageType is set to None, but GenerateAppxPackageOnBuild is set to true - maui

I created the .exe for the .net Maui Project by changing Some of the Code Like <WindowsPackageType>None</WindowsPackageType>
and in launch Setting File Changed the Command name to Project.
Now, I want to create the MSIX for the Same project I changed the Command name to MsixProject and Removed <WindowsPackageType>None</WindowsPackageType>
But it is giving the error
WindowsPackageType is set to None, but GenerateAppxPackageOnBuild is set to true.
I create a new project and Follow the same Steps to create MSIX I am able to Create the MSIX.
What is the default value for WindowsPackageType so I will be able to create the MSIX for the project.

VS 2022 17.4 Don't work.
I worked witd dotnet.
dotnet publish -f net6.0-windows10.0.19041.0 -c Release /p:RuntimeIdentifierOverride=win10-x64 /p:PublishReadyToRunShowWarnings=true

Related

No AppxManifest is specified, but WindowsPackageType is not set to MSIX

I have a very simple .NET MAUI app in VS2022 and I am getting this compile error:
Improper project configuration: no AppxManifest is specified, but
WindowsPackageType is not set to MSIX.
Before trying to compile, I did the following:
Unload project. Remove all lines references Windows, Mac, Tizen. I want this project to only work with iOS and Android.
Deleted the project folders related to Windows, Mac, Tizen
How can I get this to compile for iOS/Android only?
add a xml file with name Package.appxmanifest in platforms/windows....and paste content into it from any demo project of maui, or download a sample.

Xcode environment variable to project directory with SPM

I have an Xcode project and would like to add a Build Phase Run Script to run a script that's inside a package i'm using.
With CocoaPods i could do something like this -
bash "$SOURCE_ROOT/Pods/myFramework/script.sh.
I changed the dependency to use Swift Package Manager, so now i need to change the path to be something like this -
/Users/username/Library/Developer/Xcode/DerivedData/project-name/SourcePackages/checkouts/myFramework/script.sh.
what would be the equivalent of SOURCE_ROOT to get to the project inside DerivedData?
I don't want to set a local environment variable as this should be a out of the box ready for other developers on every mac
You can set your path like this
${BUILD_DIR%Build/*}SourcePackages/checkouts/myFramework/script.sh
here is the source of the answere.

I cannot initialize Flutter for web after adding flavors to my project

I have a Flutter project that currently builds for iOS and Android. I created the project around Flutter v1.9 or so. Since creating the project, I have added flavor support to my project (dev, prod) via the guide found here
However, after having done this, it doesn't seem like I am able to add web support to my project. Following Flutter's official instructions to enable web for a pre-existing project, I try to run flutter create . in the root directory of the project. When I do this I get the output:
The Xcode project defines schemes: dev, prod You must specify a --flavor option to select one of the available schemes.
So I try to run: flutter create . --flavor=dev and get Multiple output directories specified. Try moving --flavor=dev to be immediately following create
Soooo, I try: flutter create --flavor=dev . and get Could not find an option named "flavor".
Does anyone know how I can initialize web for this project? Thanks.
You need to do the following:
Goto root folder and rename manually ios folder temporarily to something like ios1
Goto terminal and make sure you are standing in root, then run this line:
flutter create --platforms=web .
Return to project folder and rename back manually ios1 to ios
Done

Resolving NED Path issue Veins/Omnet++

I am working with veins. I needed to change the default behavior of BaseWaveApplLayer. Rather doing in file changes, I created a second application file with the name MyApp. I added MyApp.cc, MyApp.h, MyApp.ned files. Then I duplicated TraCIDemoRSU11p, and added files for TraCIDemoRSU11pEnhanced. Now in .ini file when I changed *.rsu[*].applType to point to "TraCIDemoRSU11pEnhanced". It compiles fine, but when I try to run it, generates the following error:
Submodule appl: no module type named `TraCIDemo11pEnhanced' found that implements module interface org.car2x.veins.base.modules.IBaseApplLayer (not in the loaded NED files?).
In MyApp.ned file it is declared to be of type IBaseApplLayer. I tried setting ned-path parameter in ini file, didn't resolve the problem. In veins project properties, NED source folder is checked. Do I have to add the ned path for the newly created application file, somewhere?
Try using the cookiecutter package (https://veins.car2x.org/tutorial/#newprojects) to create new applications that use veins instead of copying and pasting files:
Use pip to install the package (https://github.com/cookiecutter/cookiecutter)
Then follow the steps in (https://github.com/veins/cookiecutter-veins-project/blob/master/README.md) to create the new project; following the prompts that appear.
This will create a new project that uses Veins and has the application layer-related files for you to update according to your application with no errors.

How to Set PublishUrl of ClickOnce Application From CommandLine

I am working on a ClickOnce application. I am trying to publish it from command line using this:
msbuild Project.csproj /t:Publish /p:configuration=release;
The problem is I want to set some other properties along with configuration, like 'PublishUrl' etc.
I've tried this:
msbuild Project.csproj /t:Publish /p:configuration=release;publishurl="\\sdmm\publish\"
It builds successfully but the output of that project will be copied to the debug folder of application in app.publish folder.
How should I handle this thing? Thanks.
You could set any property you want from the command line but before doing so, you need to open your .csproj file in some texteditor(notepad etc). Find the property that you want to edit. In your case it is publish url. Remove this property from csproj file.
Then you could do this
msbuild /target:clean,publish /p:publishurl=c:\publish_location\
you must clean the project before you publish it.
Try to change your target to
msbuild /target:clean,rebuild,publish
because property you are overriding (PublishUrl) was not embedded into application file if only "Publish" target is used.