Prime Minister Mark Carney gathered roughly 100 money managers from about 25 countries, including the United States, in Toronto on Tuesday to explain why they should invest more of the trillions of dollars they control in Canada. The core of his message was that Canada is a stable and trustworthy alternative to its neighbor.

Mr. Carney’s event, the first Canada Investment Summit, is one of a series of moves he is making to distance his country’s economy from the United States while President Trump wages a trade war and denigrates Canadian sovereignty. But he also went out of his way to emphasis that despite the current state of relations, Canada is not giving up on the United States as an economic partner, nor can it do so.

“To our American friends, let me say this: we will always be neighbors,” Mr. Carney said. “And Canada will continue to be the U.S.’s most important partner in many key areas.”

He added: “These arrangements work best when we engage as true partners that respect each other’s traditions and sovereignty. And when those opportunities return, Canada will be an even better partner.”

Growing interest in Canada as an investment destination no doubt helped lure the fund managers to the investment summit. But the growing global stature of Mr. Carney, a former central banker and finance executive, appears to have been another reason money managers overseeing much of the world’s wealth accepted Canada’s invitation to a daylong sales pitch.

“The profile of the prime minister in this moment was part of the attraction,” said Deborah K. Orida, the president and chief executive of PSP Investments, which manages the pension funds of Canada’s public servants, as well as a Canadian government investment fund. Ms. Orida, a host of the gathering, once worked at Goldman Sachs, as did Mr. Carney.

“The conference is a great start; it’s not the end game,” Ms. Orida added. “Ultimately, our hope is that it’s a catalyst for future action and investments in the weeks, months and years to come.

Mr. Carney’s meeting follows the collapse last month of trade talks with the Trump administration, the imposition by the United States of 50 percent tariffs on $20 billion in Canadian exports, Canadian retaliatory tariffs on American goods and a U.S. ban on some Canadian products.

Since then, President Trump has returned to his calls to make Canada the 51st American state and has baffled and angered Canadians by declaring that Lake Ontario is now called “Lake America.”

Although Mr. Carney and his officials had avoided mentioning the United States or Mr. Trump by name in the lead-up to the meeting, they have repeatedly, if indirectly, contrasted their country’s financial and political situation with that of its neighbor.

Mr. Carney said that Canada had worked out trade deals with a variety of other countries because its “reputation as a reliable, predictable partner has rarely been more valuable in a world where transactions are replacing relationships and zero sum is favored over win-win.”

“We are blessed with many commodities and capabilities in Canada,” he said. “But we have earned our most valuable asset — which is trust.”

A member survey by the London-based Global Infrastructure Association ranked Canada as the “world’s most attractive market” for that type of investment. It was the first time that Canada had surpassed the United States and Germany in the poll.

While normally circumspect, Mr. Carney has set a high bar for the level of foreign investment he wants: $1 trillion over five years. He has repeatedly said that he wants that money to go into “nation building” projects that will make Canada less reliant and less integrated with the United States, regardless of how the trade war that Mr. Trump began against Canada, a formerly close U.S. ally, shakes out.

To help boost investor interest, Mr. Carney’s officials on Monday and Tuesday announced several tax changes that will benefit large investors.

The 167 potential investments that Canada highlighted in a 66-page catalog for investors leans heavily toward infrastructure projects that Mr. Carney has long been promoting as an antidote to the economic consequences of diminished trade with the United States.

Some, like projects with liquid natural gas in Western Canada, seem likely to appeal to investors. But others, like turning the port at Churchill, in the far north of Manitoba on Hudson’s Bay in the subarctic, into a four-season operation, are not as obviously alluring, although they have significant political importance.

Absent from the offerings in the book was the potential sell-off of public facilities like airports, even though there is strong investment demand for such takeovers. On Tuesday, Mr. Carney said that the government would sell the operating concessions for the country’s four largest airports in Toronto, Vancouver, Montreal and Calgary while retaining ownership of their land and facilities. But he suggested that the government would first look to Canadian pension funds, which own several airports around the world, as potential buyers.

While the agenda fit with his political objectives, Mr. Carney took steps to show that luring foreign investors was not just his issue. Stephen Harper, the country’s last Conservative prime minister and a staunch partisan, will deliver the closing remarks.

On Monday night, a group of protesters marched from Toronto’s City Hall to the Art Gallery of Ontario, where Mr. Carney was hosting a dinner for the summit’s participants. Many demonstrators carried signs denouncing billionaires and corporate executives and rejecting the sale of airports. The group included Indigenous people opposed to natural resource development on their lands. Some signs called for greater taxation on wealth, while others denounced Mr. Carney’s military buildup called for an end to investments in fossil fuels, a sector being actively promoted at the summit.

During a news conference, Mr. Carney said that the conference had demonstrated investors’ interest in Canada.

“We didn’t cross an ocean to make our case, he said. “The world came to us to peer in our shop window.”

In an onstage discussion with Ms. Orida after his speech, Mr. Carney said that President Trump had given him a box containing a large gold key during a visit to the White House last year.

“He’s like, yeah, it’s a key to the White House,” Mr. Carney said. “You just bring it, they’ll let you in. And then he says: maybe they’ll shoot you.”

Mr. Carney added: “That sort of sums up the relationship that we have.”